bugDotGNU Portable.NET - Bugs: bug #8262, C Compiler array size declaration...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #8262: C Compiler array size declaration problem

Submitted by:  None
Submitted on:  Tue 23 Mar 2004 12:26:35 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Tue 28 Dec 2004 05:40:41 AM UTC, comment #1:

mdupont shares this as a workaround:

I have traced this to
ILNode_CSemAnalysis(ILNode_ToConst)
and replace the error with a warning as a workaround
== CCErrorOnLine(yygetfilename(node), yygetlinenum(node),
++ CCWarningOnLine(yygetfilename(node), yygetlinenum(node),

Stephen Compall <S11001001>
Project Member
Tue 23 Mar 2004 12:26:35 PM UTC, original submission:

cscc will not compile the following declarations (error: constant value required):

char c [sizeof (long) + 1];
char d [sizeof (void *) + 1];

gcc will compile them without problems, and the following are fine on both:

char c [sizeof (long)];
char d [sizeof (void *)];

Anonymous

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follows 1 latest change.

Date Changed By Updated Field Previous Value => Replaced By
Tue 28 Dec 2004 05:34:48 AM UTCS11001001SummaryC Compiler sizeof problem=>C Compiler array size declaration problem

Back to the top


Powered by Savane 3.1-cleanup1