From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1D98B3857800; Sun, 31 Oct 2021 09:42:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1D98B3857800 From: "pinskia at gcc dot 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 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone Message-ID: 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: Sun, 31 Oct 2021 09:42:10 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103012 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:5= 02 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 for instructions.=