From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6F6D33858D39; Thu, 28 Oct 2021 08:46:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6F6D33858D39 From: "acoplan at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/82469] ICE in _cpp_process_line_notes, at libcpp/lex.c:1066 Date: Thu, 28 Oct 2021 08:46:55 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: preprocessor X-Bugzilla-Version: 6.3.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: acoplan at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_known_to_fail cf_reconfirmed_on bug_status everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Oct 2021 08:46:55 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D82469 Alex Coplan 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 --- Confirmed on trunk with an x86_64-linux-gnu -> aarch64-linux-gnu cross. Her= e is a backtrace: (gdb) bt #0 fancy_abort (file=3D0x2e0a270 "/home/alecop01/toolchain/src/gcc/libcpp/lex.c", line=3D1163, function=3D0x= 2e0ad60 <_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=3D0x35b1840, in_comment=3D1) at /home/alecop01/toolchain/src/gcc/libcpp/lex.c:1163 #2 0x00000000027cb3da in _cpp_skip_block_comment (pfile=3D0x35b1840) at /home/alecop01/toolchain/src/gcc/libcpp/lex.c:1211 #3 0x00000000027cfad3 in _cpp_lex_direct (pfile=3D0x35b1840) at /home/alecop01/toolchain/src/gcc/libcpp/lex.c:3111 #4 0x00000000027cf18a in _cpp_lex_token (pfile=3D0x35b1840) at /home/alecop01/toolchain/src/gcc/libcpp/lex.c:2810 #5 0x00000000027dd468 in cpp_get_token_1 (pfile=3D0x35b1840, location=3D0x7fffffffad00) at /home/alecop01/toolchain/src/gcc/libcpp/macro.c:2898 #6 0x00000000027ddc76 in cpp_get_token_with_location (pfile=3D0x35b1840, loc=3D0x7fffffffad00) at /home/alecop01/toolchain/src/gcc/libcpp/macro.c:31= 67 #7 0x00000000027c1b9a in _cpp_parse_expr (pfile=3D0x35b1840, is_if=3Dtrue)= at /home/alecop01/toolchain/src/gcc/libcpp/expr.c:1334 #8 0x00000000027bc836 in do_if (pfile=3D0x35b1840) at /home/alecop01/toolchain/src/gcc/libcpp/directives.c:2059 #9 0x00000000027b9356 in _cpp_handle_directive (pfile=3D0x35b1840, indented=3Dfalse) at /home/alecop01/toolchain/src/gcc/libcpp/directives.c:5= 57 #10 0x00000000027e62b6 in _cpp_scan_out_logical_line (pfile=3D0x35b1840, macro=3D0x0, builtin_macro_arg=3Dfalse) at /home/alecop01/toolchain/src/gcc/libcpp/traditional.c:776 #11 0x00000000027e4f6a in _cpp_read_logical_line_trad (pfile=3D0x35b1840) at /home/alecop01/toolchain/src/gcc/libcpp/traditional.c:321 #12 0x0000000000c181ce in scan_translation_unit_trad (pfile=3D0x35b1840) at /home/alecop01/toolchain/src/gcc/gcc/c-family/c-ppoutput.c:420 #13 0x0000000000c175c0 in preprocess_file (pfile=3D0x35b1840) 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=3D0x3615d10 "pr.c") at /home/alecop01/toolchain/src/gcc/gcc/toplev.c:1844 #17 0x000000000142270b in do_compile (no_backend=3Dtrue) at /home/alecop01/toolchain/src/gcc/gcc/toplev.c:2139 #18 0x0000000001422b70 in toplev::main (this=3D0x7fffffffb1e2, argc=3D19, argv=3D0x7fffffffb2e8) at /home/alecop01/toolchain/src/gcc/gcc/toplev.c:2306 #19 0x000000000274293c in main (argc=3D19, argv=3D0x7fffffffb2e8) at /home/alecop01/toolchain/src/gcc/gcc/main.c:39 (gdb) p *note $6 =3D {pos =3D 0x3616170 "A 1\n#endif\n\n", type =3D 10}=