public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "acoplan at gcc dot gnu.org" <gcc-bugzilla@gcc.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 [thread overview] Message-ID: <bug-82469-4-8MgREVgmiD@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-82469-4@http.gcc.gnu.org/bugzilla/> 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}
prev parent reply other threads:[~2021-10-28 8:46 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-82469-4@http.gcc.gnu.org/bugzilla/> 2021-09-20 21:39 ` pinskia at gcc dot gnu.org 2021-09-22 11:00 ` heiko at hexco dot de 2021-10-26 9:26 ` pinskia at gcc dot gnu.org 2021-10-27 17:44 ` acoplan at gcc dot gnu.org 2021-10-28 8:46 ` acoplan at gcc dot gnu.org [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-82469-4-8MgREVgmiD@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).