[Bug preprocessor/11064] New: Preprocessor tries to tokenize code that should be unconditionally skipped
rschiele@uni-mannheim.de
gcc-bugzilla@gcc.gnu.org
Mon Jun 2 13:16:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11064
Summary: Preprocessor tries to tokenize code that should be
unconditionally skipped
Product: gcc
Version: 3.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: preprocessor
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: rschiele@uni-mannheim.de
CC: gcc-bugs@gcc.gnu.org
gcc tries to tokenize code that is wrapped around with #if 0 ... #endif
Try compiling the following code:
#if 0
"
#endif
Although the quotes are no valid C token, to my opinion the compiler should not care about it,
as the section should be completely skipped by the preprocessor. But in fact, the compiler
teminates by the message
missing terminating " character
gcc 3.4 behaves in a sane way here.
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the Gcc-bugs
mailing list