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:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned 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 add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

 

 

Follows 1 latest change.

Date Changed by Updated Field Previous Value => Replaced by
2004-12-28 S11001001 SummaryC Compiler sizeof problem => C Compiler array size declaration problem

Back to the top


Powered by Savane 3.3