public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: preprocessor/6848: Not a preprocessing directive
@ 2002-05-28 14:02 René Møller Fonseca
0 siblings, 0 replies; 4+ messages in thread
From: René Møller Fonseca @ 2002-05-28 14:02 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR preprocessor/6848; it has been noted by GNATS.
From: =?ISO-8859-1?Q?Ren=E9_M=F8ller_Fonseca?= <fonseca@mip.sdu.dk>
To: zack@gcc.gnu.org, gcc-gnats@gcc.gnu.org
Cc:
Subject: Re: preprocessor/6848: Not a preprocessing directive
Date: Tue, 28 May 2002 20:51:34 +0200
Sorry, I missed that but the problem still persists.
Try without the "'":
#define SYMBOL // line 1
SYMBOL #error Im not a preprocessing directive // line 2
By the way, I could not find any information describing how replies to
bug reports (e-mails) works thus I removed some of the listed e-mail
addresses.
zack@gcc.gnu.org wrote:
> Synopsis: Not a preprocessing directive
>
> State-Changed-From-To: open->feedback
> State-Changed-By: zack
> State-Changed-When: Tue May 28 11:08:02 2002
> State-Changed-Why:
> Line 2 is not parsed as a preprocessing directive. Have you confused the syntax error messages you get, because of the un-terminated character constant "I'm ...", with the #error directive being executed?
>
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6848
>
--
B.Sc. in Computer Systems Engineering
The Maersk Mc-Kinney Moller Institute for Production Technology
University of Southern Denmark
http://www.mip.sdu.dk/~fonseca
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: preprocessor/6848: Not a preprocessing directive
@ 2002-05-29 12:36 neil
0 siblings, 0 replies; 4+ messages in thread
From: neil @ 2002-05-29 12:36 UTC (permalink / raw)
To: fonseca, gcc-bugs, gcc-prs, nobody
Synopsis: Not a preprocessing directive
State-Changed-From-To: feedback->closed
State-Changed-By: neil
State-Changed-When: Wed May 29 12:32:46 2002
State-Changed-Why:
There is no bug; it is not being treated as a preprocessing
directive. What makes you think it is?
The tokens are output as-is into the output stream, like
any "normal" preprocessor tokens are. The output stream
therefore contains
#error I'm not a preprocessing directive
but note that if you check the return value of GCC -E in
the shell, it is zero, and no error occurred.
If you compile with -c, you of course get a syntax error
when the compiler proper reads the raw '#'.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6848
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: preprocessor/6848: Not a preprocessing directive
@ 2002-05-28 11:12 zack
0 siblings, 0 replies; 4+ messages in thread
From: zack @ 2002-05-28 11:12 UTC (permalink / raw)
To: fonseca, gcc-bugs, gcc-prs, nobody
Synopsis: Not a preprocessing directive
State-Changed-From-To: open->feedback
State-Changed-By: zack
State-Changed-When: Tue May 28 11:08:02 2002
State-Changed-Why:
Line 2 is not parsed as a preprocessing directive. Have you confused the syntax error messages you get, because of the un-terminated character constant "I'm ...", with the #error directive being executed?
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6848
^ permalink raw reply [flat|nested] 4+ messages in thread
* preprocessor/6848: Not a preprocessing directive
@ 2002-05-28 9:56 fonseca
0 siblings, 0 replies; 4+ messages in thread
From: fonseca @ 2002-05-28 9:56 UTC (permalink / raw)
To: gcc-gnats
>Number: 6848
>Category: preprocessor
>Synopsis: Not a preprocessing directive
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue May 28 09:56:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: fonseca@mip.sdu.dk
>Release: cpp (GCC) 3.1
>Organization:
>Environment:
any
>Description:
Line 2 should not be parsed as a preprocessing directive (at least when using -std=iso9899:1999). I have not checked what other language specifications than ISO/IEC 9899:1999 say.
Same problem for "gcc -E".
#define SYMBOL // line 1
SYMBOL #error I'm not a preprocessing directive // line 2
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-05-29 19:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-28 14:02 preprocessor/6848: Not a preprocessing directive René Møller Fonseca
-- strict thread matches above, loose matches on Subject: below --
2002-05-29 12:36 neil
2002-05-28 11:12 zack
2002-05-28 9:56 fonseca
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).