This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug preprocessor/11064] New: Preprocessor tries to tokenize code that should be unconditionally skipped


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]