[Bug preprocessor/82469] ICE in _cpp_process_line_notes, at libcpp/lex.c:1066

acoplan at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Oct 28 08:46:55 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82469

Alex Coplan <acoplan at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |12.0
   Last reconfirmed|                            |2021-10-28
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1

--- Comment #5 from Alex Coplan <acoplan at gcc dot gnu.org> ---
Confirmed on trunk with an x86_64-linux-gnu -> aarch64-linux-gnu cross. Here is
a backtrace:

(gdb) bt
#0  fancy_abort (file=0x2e0a270
"/home/alecop01/toolchain/src/gcc/libcpp/lex.c", line=1163, function=0x2e0ad60
<_cpp_process_line_notes::__FUNCTION__> "_cpp_process_line_notes") at
/home/alecop01/toolchain/src/gcc/gcc/diagnostic.c:1972
#1  0x00000000027cb2a3 in _cpp_process_line_notes (pfile=0x35b1840,
in_comment=1) at /home/alecop01/toolchain/src/gcc/libcpp/lex.c:1163
#2  0x00000000027cb3da in _cpp_skip_block_comment (pfile=0x35b1840) at
/home/alecop01/toolchain/src/gcc/libcpp/lex.c:1211
#3  0x00000000027cfad3 in _cpp_lex_direct (pfile=0x35b1840) at
/home/alecop01/toolchain/src/gcc/libcpp/lex.c:3111
#4  0x00000000027cf18a in _cpp_lex_token (pfile=0x35b1840) at
/home/alecop01/toolchain/src/gcc/libcpp/lex.c:2810
#5  0x00000000027dd468 in cpp_get_token_1 (pfile=0x35b1840,
location=0x7fffffffad00) at
/home/alecop01/toolchain/src/gcc/libcpp/macro.c:2898
#6  0x00000000027ddc76 in cpp_get_token_with_location (pfile=0x35b1840,
loc=0x7fffffffad00) at /home/alecop01/toolchain/src/gcc/libcpp/macro.c:3167
#7  0x00000000027c1b9a in _cpp_parse_expr (pfile=0x35b1840, is_if=true) at
/home/alecop01/toolchain/src/gcc/libcpp/expr.c:1334
#8  0x00000000027bc836 in do_if (pfile=0x35b1840) at
/home/alecop01/toolchain/src/gcc/libcpp/directives.c:2059
#9  0x00000000027b9356 in _cpp_handle_directive (pfile=0x35b1840,
indented=false) at /home/alecop01/toolchain/src/gcc/libcpp/directives.c:557
#10 0x00000000027e62b6 in _cpp_scan_out_logical_line (pfile=0x35b1840,
macro=0x0, builtin_macro_arg=false) at
/home/alecop01/toolchain/src/gcc/libcpp/traditional.c:776
#11 0x00000000027e4f6a in _cpp_read_logical_line_trad (pfile=0x35b1840) at
/home/alecop01/toolchain/src/gcc/libcpp/traditional.c:321
#12 0x0000000000c181ce in scan_translation_unit_trad (pfile=0x35b1840) at
/home/alecop01/toolchain/src/gcc/gcc/c-family/c-ppoutput.c:420
#13 0x0000000000c175c0 in preprocess_file (pfile=0x35b1840) at
/home/alecop01/toolchain/src/gcc/gcc/c-family/c-ppoutput.c:97
#14 0x0000000000c15473 in c_common_init () at
/home/alecop01/toolchain/src/gcc/gcc/c-family/c-opts.c:1214
#15 0x0000000000b39284 in c_objc_common_init () at
/home/alecop01/toolchain/src/gcc/gcc/c/c-objc-common.c:64
#16 0x0000000001421e81 in lang_dependent_init (name=0x3615d10 "pr.c") at
/home/alecop01/toolchain/src/gcc/gcc/toplev.c:1844
#17 0x000000000142270b in do_compile (no_backend=true) at
/home/alecop01/toolchain/src/gcc/gcc/toplev.c:2139
#18 0x0000000001422b70 in toplev::main (this=0x7fffffffb1e2, argc=19,
argv=0x7fffffffb2e8) at /home/alecop01/toolchain/src/gcc/gcc/toplev.c:2306
#19 0x000000000274293c in main (argc=19, argv=0x7fffffffb2e8) at
/home/alecop01/toolchain/src/gcc/gcc/main.c:39
(gdb) p *note
$6 = {pos = 0x3616170 "A 1\n#endif\n\n", type = 10}


More information about the Gcc-bugs mailing list