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/11361] New: [3.4 regression] ICE (segfault) in c-lex.c with one-liner


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

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

           Summary: [3.4 regression] ICE (segfault) in c-lex.c with one-
                    liner
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P2
         Component: preprocessor
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: giovannibajo at libero dot it
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-cygwin
  GCC host triplet: i686-pc-cygwin
GCC target triplet: i686-pc-cygwin

Just compile this line:

# 31 "eval.c" 2

to get a segmentation fault.

#0  fe_file_change (new_map=0x0) at ../../gcc/gcc/c-lex.c:205
#1  0x005618dd in cb_file_change (pfile=0xa069f48, new_map=0x0)
    at ../../gcc/gcc/c-opts.c:1415
#2  0x008b9870 in do_linemarker (pfile=0xa069f48) at ../../gcc/gcc/cpplib.c:873
#3  0x008b89c8 in _cpp_handle_directive (pfile=0xa069f48, indented=0)
    at ../../gcc/gcc/cpplib.c:424
#4  0x008bca59 in _cpp_lex_token (pfile=0xa069f48)
    at ../../gcc/gcc/cpplex.c:659
#5  0x008c37c0 in cpp_get_token (pfile=0xa069f48)
    at ../../gcc/gcc/cppmacro.c:1064
#6  0x0055446d in c_lex (value=0x22fcb4) at ../../gcc/gcc/c-lex.c:307
#7  0x004c29f8 in cp_lexer_get_preprocessor_token (lexer=0x0, token=0x22fcb0)
    at ../../gcc/gcc/cp/parser.c:632
#8  0x004c240a in cp_lexer_new_main () at ../../gcc/gcc/cp/parser.c:304


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