bugDotGNU Portable.NET - Bugs: bug #11068, pnet c loses the constantness of...

 
 

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

bug #11068: pnet c loses the constantness of integers in array calculation

Submitter:  James Michael DuPont <mdupont>
Submitted:  Sat 20 Nov 2004 10:49:07 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Duplicate Privacy:  Public
Assigned to:  None Open/Closed:  Closed

Discussion

Tue 28 Dec 2004 05:40:03 AM UTC, comment #2: 

This is a duplicate of bug #8262; please see https://savannah. ... &item_id=8262 for more information.

Stephen Compall <S11001001>
Group Member
Sun 21 Nov 2004 10:11:26 AM UTC, comment #1: 

Oops,
It looks like I cannot paste correctly,
like 3 should read like this :
char _unused2[15 sizeof (int) - 2 sizeof (void *)];

note that the "-" missing, thanks to leppie for pointing this out.

mike

James Michael DuPont <mdupont>
Sat 20 Nov 2004 10:49:07 PM UTC, original submission:  

test.c
line 1:int x=15 sizeof (int) - 2 sizeof (void *);
line 2:const int x2=15 sizeof (int) - 2 sizeof (void *);
line 3:char _unused2[2 sizeof (void )2 sizeof (void )];

test.c:3: error: constant value required

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),

James Michael DuPont <mdupont>

 

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

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-12-28 S11001001 StatusNone Duplicate
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.16-ed84.
Corresponding source code