public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/40369] New: Unexpected Macro expansion leading to error
@ 2009-06-07 17:13 saurabh dot manchanda at yahoo dot co dot in
2009-06-13 19:17 ` [Bug c/40369] " pinskia at gcc dot gnu dot org
2009-06-13 19:18 ` pinskia at gcc dot gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: saurabh dot manchanda at yahoo dot co dot in @ 2009-06-07 17:13 UTC (permalink / raw)
To: gcc-bugs
The following code was tried :
/* File1.c*/
#include<stdio.h>
#define _q "
int main()
{
printf(_q ABC _q);
}
When given the -E option, I get
int main()
{
printf(" ABC ");
}
but when the same code was compiled ( gcc File1.c ), then the following errors
were received :
7 : missing terminating " character
7 : missing terminating " character
7 : 'ABC' undeclared
This was the unexpected error(list) obtained from that code.
--
Summary: Unexpected Macro expansion leading to error
Product: gcc
Version: 4.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: saurabh dot manchanda at yahoo dot co dot in
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40369
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c/40369] Unexpected Macro expansion leading to error
2009-06-07 17:13 [Bug c/40369] New: Unexpected Macro expansion leading to error saurabh dot manchanda at yahoo dot co dot in
@ 2009-06-13 19:17 ` pinskia at gcc dot gnu dot org
2009-06-13 19:18 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-06-13 19:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2009-06-13 19:17 -------
This is expected as -E really just preproesses the source and does not tokenize
the code that much.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40369
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c/40369] Unexpected Macro expansion leading to error
2009-06-07 17:13 [Bug c/40369] New: Unexpected Macro expansion leading to error saurabh dot manchanda at yahoo dot co dot in
2009-06-13 19:17 ` [Bug c/40369] " pinskia at gcc dot gnu dot org
@ 2009-06-13 19:18 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-06-13 19:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2009-06-13 19:18 -------
Oh and the tokenizer happens during preprocessing.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40369
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-06-13 19:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-07 17:13 [Bug c/40369] New: Unexpected Macro expansion leading to error saurabh dot manchanda at yahoo dot co dot in
2009-06-13 19:17 ` [Bug c/40369] " pinskia at gcc dot gnu dot org
2009-06-13 19:18 ` pinskia at gcc dot gnu dot org
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).