public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/11064] New: Preprocessor tries to tokenize code that should be unconditionally skipped
@ 2003-06-02 13:16 rschiele@uni-mannheim.de
  2003-06-02 14:04 ` [Bug preprocessor/11064] " pinskia@physics.uc.edu
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: rschiele@uni-mannheim.de @ 2003-06-02 13:16 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-06-02 20:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-02 13:16 [Bug preprocessor/11064] New: Preprocessor tries to tokenize code that should be unconditionally skipped rschiele@uni-mannheim.de
2003-06-02 14:04 ` [Bug preprocessor/11064] " pinskia@physics.uc.edu
2003-06-02 19:44 ` neil@daikokuya.co.uk
2003-06-02 19:51 ` jsm28@cam.ac.uk
2003-06-02 20:03 ` rschiele@uni-mannheim.de

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).