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

Submitter:  None
Submitted:  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>
Group 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

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

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.13-02a9.
Corresponding source code