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

Submitted by:  James Michael DuPont <mdupont>
Submitted on:  Sat 20 Nov 2004 10:49:07 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Duplicate
Privacy: PublicAssigned to: None
Open/Closed: Closed

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

This is a duplicate of bug #8262; please see https://savannah.gnu.org/bugs/?func=detailitem&item_id=8262 for more information.

Stephen Compall <S11001001>
Project 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>

 

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

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Tue 28 Dec 2004 05:40:03 AM UTCS11001001StatusNone=>Duplicate
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1