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
Priority:  5 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open

Discussion

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

 

Attached Files

This item currently has no attached files.

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

 

Votes

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.

 

History

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.16-ed84.
Corresponding source code