dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pnet-developers] [bugs #11068] pnet c loses the constantness of integer


From: James Michael DuPont
Subject: [Pnet-developers] [bugs #11068] pnet c loses the constantness of integers in array calculation
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041111 Firefox/1.0 (Debian package 1.0-2)

This mail is an automated notification from the bugs tracker
 of the project: DotGNU Portable.NET.

/**************************************************************************/
[bugs #11068] Latest Modifications:

Changes by: 
                James Michael DuPont <address@hidden>
'Date: 
                Sun 11/21/2004 at 10:11 (Europe/Berlin)

------------------ Additional Follow-up Comments ----------------------------
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






/**************************************************************************/
[bugs #11068] Full Item Snapshot:

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=11068>
Project: DotGNU Portable.NET
Submitted by: James Michael DuPont
On: Sat 11/20/2004 at 22:49

Category:  None
Severity:  5 - Average
Item Group:  None
Resolution:  None
Privacy:  Public
Assigned to:  None
Status:  Open


Summary:  pnet c loses the constantness of integers in array calculation

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


Follow-up Comments
------------------


-------------------------------------------------------
Date: Sun 11/21/2004 at 10:11       By: James Michael DuPont <mdupont>
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












For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=11068>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]