public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: preprocessor/5807: The preprocessor evaluates expression s in 64-bit, violating IS C++ 16.1.4
@ 2002-03-01 12:29 paolo
0 siblings, 0 replies; 2+ messages in thread
From: paolo @ 2002-03-01 12:29 UTC (permalink / raw)
To: dick_schoeller, eric_dana, gcc-bugs, gcc-prs, nobody
Synopsis: The preprocessor evaluates expression s in 64-bit, violating IS C++ 16.1.4
State-Changed-From-To: open->closed
State-Changed-By: paolo
State-Changed-When: Fri Mar 1 12:29:48 2002
State-Changed-Why:
Duplicate of preprocessor/5806.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5807
^ permalink raw reply [flat|nested] 2+ messages in thread
* preprocessor/5807: The preprocessor evaluates expression s in 64-bit, violating IS C++ 16.1.4
@ 2002-03-01 12:26 eric_dana
0 siblings, 0 replies; 2+ messages in thread
From: eric_dana @ 2002-03-01 12:26 UTC (permalink / raw)
To: gcc-gnats; +Cc: dick_schoeller
>Number: 5807
>Category: preprocessor
>Synopsis: The preprocessor evaluates expression s in 64-bit, violating IS C++ 16.1.4
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Mar 01 12:26:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Eric Dana
>Release: GCC 3.0.4 and possibly GCC 3.1
>Organization:
>Environment:
AIX, Solaris, Sequent and others
>Description:
The preprocessor evaluates expressions using 64-bits, violating ISO C++ 16.1.4 and 5.19. The problems is generic and can be easily reproduced. This causes the 32/64 bit test on Sequent provided header files to be incorrectly parsed.
The vendor compilers work according to the standard.
>How-To-Repeat:
On Solaris (64-bit):
cc ed.c
a.out
cc -xarch=v9 ed.c (64-bit build)
a.out
gcc ed.c
a.out
On all OS's:
cc ed.c
a.out
gcc ed.c
a.out
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="ed.c"
Content-Disposition: inline; filename="ed.c"
#if 0
#if ((~0UL) == (0xffffffffUL))
#define MYSIZESTRING "32 bit"
#else
#define MYSIZESTRING "64 bit"
#endif
#endif
#define MYSIZESTRING "foo"
#include <stdio.h>
main ()
{
printf("sizeof long = %d\n", sizeof(long));
printf("C preprocessor thinks the size is: %s\n", MYSIZESTRING);
}
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-03-01 20:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-01 12:29 preprocessor/5807: The preprocessor evaluates expression s in 64-bit, violating IS C++ 16.1.4 paolo
-- strict thread matches above, loose matches on Subject: below --
2002-03-01 12:26 eric_dana
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).