public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* preprocessor/6780: Incorrect diagnosis of token pasting
@ 2002-05-23 3:06 loewis
0 siblings, 0 replies; 3+ messages in thread
From: loewis @ 2002-05-23 3:06 UTC (permalink / raw)
To: gcc-gnats; +Cc: boehme
>Number: 6780
>Category: preprocessor
>Synopsis: Incorrect diagnosis of token pasting
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu May 23 03:06:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:
>Release: 3.1
>Organization:
HUB
>Environment:
System: SunOS paros 5.9 Beta_Refresh sun4u sparc SUNW,Sun-Blade-1000
Architecture: sun4
host: sparc-sun-solaris2.8
build: sparc-sun-solaris2.8
target: sparc-sun-solaris2.8
configured with: ../configure --host=sparc-sun-solaris2.8 --enable-shared --enable-threads --with-cpu=v8 --with-gnu-ld --with-gnu-as --enable-version-specific-runtime-libs
>Description:
When compiling the program
#define inc2(a,b) <##a##.##b##>
#define INC(X) inc2(X,h)
#include INC(stdio)
int main()
{
printf("Hallo");
}
gcc gives the warning
warning: pasting "<stdio>" and "." does not give a valid preprocessing token
This warning is incorrect: There is no token <stdio> (with starting
and terminating angle bracket) created during pasting. It is not clear
whether the compiler really created such a token, or whether it just
reports it in the error message.
>How-To-Repeat:
Compile the above code.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: preprocessor/6780: Incorrect diagnosis of token pasting
@ 2002-05-23 3:50 neil
0 siblings, 0 replies; 3+ messages in thread
From: neil @ 2002-05-23 3:50 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, loewis, nobody
Synopsis: Incorrect diagnosis of token pasting
State-Changed-From-To: open->analyzed
State-Changed-By: neil
State-Changed-When: Thu May 23 03:50:05 2002
State-Changed-Why:
Confirmed as a bug.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6780
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: preprocessor/6780: Incorrect diagnosis of token pasting
@ 2002-05-24 12:36 neil
0 siblings, 0 replies; 3+ messages in thread
From: neil @ 2002-05-24 12:36 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, loewis, nobody
Synopsis: Incorrect diagnosis of token pasting
State-Changed-From-To: analyzed->closed
State-Changed-By: neil
State-Changed-When: Fri May 24 12:29:17 2002
State-Changed-Why:
Fixed. Thanks for the bug report.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6780
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-05-24 19:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-23 3:06 preprocessor/6780: Incorrect diagnosis of token pasting loewis
2002-05-23 3:50 neil
2002-05-24 12:36 neil
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).