This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/11064] New: Preprocessor tries to tokenize code that should be unconditionally skipped
- From: "rschiele at uni-mannheim dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jun 2003 13:16:16 -0000
- Subject: [Bug preprocessor/11064] New: Preprocessor tries to tokenize code that should be unconditionally skipped
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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.