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 c/12422] New: Non-paired sets of single quote causes error in bypassed code.


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12422

           Summary: Non-paired sets of single quote causes error in bypassed
                    code.
           Product: gcc
           Version: 2.96 (redhat)
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rgaupsas at synopsys dot com
                CC: gcc-bugs at gcc dot gnu dot org

GCC version:

        % gcc -v
        Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
        gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)

System type:

        PC Intel or AMD 

GCC options:

        none

Command line:

        gcc bug.c

Error message:

        bug.c:11:17: missing terminating ' character

Preprocessed file:

        Not included because test case is trivial; also bug is in preprocessor.


--------------- bug.c follows:

#include <stdio.h>

main ()
{

#if 0
        This will be bypassed, as it should.
#endif

#if 0
        This won't. It will cause an error because of the single apostrophe.
        Preprocessor requries paired sets. Pairing should be irrelevant here.
#endif

fprintf(stdout,"test\n");
}


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