public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/103012] New: ICE with #pragma GCC optimize followed by long line Date: Sun, 31 Oct 2021 09:42:09 +0000 [thread overview] Message-ID: <bug-103012-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103012 Bug ID: 103012 Summary: ICE with #pragma GCC optimize followed by long line Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: pinskia at gcc dot gnu.org Target Milestone: --- t0.cc:1:26: internal compiler error: in linemap_add, at libcpp/line-map.c:502 1 | #pragma GCC optimize("Og") | ^ 0x2094272 linemap_add(line_maps*, lc_reason, unsigned int, char const*, unsigned int) /home/apinski/src/upstream-gcc/gcc/libcpp/line-map.c:502 0x2094486 linemap_line_start(line_maps*, unsigned int, unsigned int) /home/apinski/src/upstream-gcc/gcc/libcpp/line-map.c:827 0x2094798 linemap_position_for_column(line_maps*, unsigned int) /home/apinski/src/upstream-gcc/gcc/libcpp/line-map.c:898 0x208fd00 _cpp_lex_direct /home/apinski/src/upstream-gcc/gcc/libcpp/lex.c:2994 0x2091670 _cpp_lex_token /home/apinski/src/upstream-gcc/gcc/libcpp/lex.c:2810 0x207fddf lex_macro_node /home/apinski/src/upstream-gcc/gcc/libcpp/directives.c:601 0x20805a2 do_define /home/apinski/src/upstream-gcc/gcc/libcpp/directives.c:639 0x20836ef run_directive /home/apinski/src/upstream-gcc/gcc/libcpp/directives.c:589 0x20837a7 cpp_define(cpp_reader*, char const*) /home/apinski/src/upstream-gcc/gcc/libcpp/directives.c:2511 0x20837fb cpp_define_unused(cpp_reader*, char const*) /home/apinski/src/upstream-gcc/gcc/libcpp/directives.c:2520 0xc7a234 c_cpp_builtins_optimize_pragma(cpp_reader*, tree_node*, tree_node*) /home/apinski/src/upstream-gcc/gcc/gcc/c-family/c-cppbuiltin.c:600 0xc9c8e3 handle_pragma_optimize /home/apinski/src/upstream-gcc/gcc/gcc/c-family/c-pragma.c:997 0xb35c40 cp_parser_pragma /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.c:47773 0xb6cbfb cp_parser_toplevel_declaration /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.c:14852 0xb6cbfb cp_parser_toplevel_declaration /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.c:14843 0xb6cbfb cp_parser_translation_unit /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.c:4987 0xb6cbfb c_parse_file() /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.c:47832 0xc9a5ed c_common_parse_file() /home/apinski/src/upstream-gcc/gcc/gcc/c-family/c-opts.c:1237 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.
next reply other threads:[~2021-10-31 9:42 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-10-31 9:42 pinskia at gcc dot gnu.org [this message] 2021-10-31 9:43 ` [Bug c++/103012] " pinskia at gcc dot gnu.org 2021-10-31 9:43 ` pinskia at gcc dot gnu.org 2021-11-01 9:42 ` marxin at gcc dot gnu.org 2021-11-01 9:52 ` marxin at gcc dot gnu.org 2021-11-07 3:11 ` [Bug c++/103012] [11/12 Regression] ICE with #pragma GCC optimize followed by long line (4047 long) pinskia at gcc dot gnu.org 2021-11-08 8:16 ` marxin at gcc dot gnu.org 2021-12-28 11:49 ` jakub at gcc dot gnu.org 2021-12-30 13:26 ` cvs-commit at gcc dot gnu.org 2021-12-30 13:39 ` [Bug c++/103012] [11 " jakub at gcc dot gnu.org 2022-01-24 9:20 ` cvs-commit at gcc dot gnu.org 2022-01-24 9:29 ` jakub at gcc dot gnu.org 2022-01-24 9:31 ` jakub at gcc dot gnu.org
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-103012-4@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).