From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 428E8398C830; Wed, 10 Feb 2021 06:19:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 428E8398C830 From: "boris at kolpackov dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/99051] New: [modules] ICE/SIGSEGV in get_location_from_adhoc_loc Date: Wed, 10 Feb 2021 06:19:35 +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: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: boris at kolpackov dot net 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 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: Wed, 10 Feb 2021 06:19:36 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99051 Bug ID: 99051 Summary: [modules] ICE/SIGSEGV in get_location_from_adhoc_loc Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: boris at kolpackov dot net Target Milestone: --- cat <hello.hxx #pragma once #if 1 import ; #else #include #endif void say_hello (const std::string_view& name); EOF g++ -std=3Dc++2a -fmodules-ts -fmodule-header -x c++-header /path/to/include/c++/11.0.0/string_view g++ -std=3Dc++2a -fmodules-ts -fmodule-header -x c++-header hello.hxx=20 hello.hxx: internal compiler error: Segmentation fault 0x1809473 crash_signal ../../gcc/gcc/toplev.c:327 0x2c2808b get_location_from_adhoc_loc(line_maps const*, unsigned int) ../../gcc/libcpp/line-map.c:257 0xc634c8 module_state::write_location(bytes_out&, unsigned int) ../../gcc/gcc/cp/module.cc:15600 0xc65c6f module_state::write_define(bytes_out&, cpp_macro const*, bool) ../../gcc/gcc/cp/module.cc:16368 0xc66f09 module_state::write_macros(elf_out*, cpp_reader*, unsigned int*) ../../gcc/gcc/cp/module.cc:16870 0xc69d65 module_state::write(elf_out*, cpp_reader*) ../../gcc/gcc/cp/module.cc:17747 0xc6ffe9 finish_module_processing(cpp_reader*) ../../gcc/gcc/cp/module.cc:19778 0xb8e905 c_parse_final_cleanups() ../../gcc/gcc/cp/decl2.c:5178 0xf10f4c c_common_parse_file() ../../gcc/gcc/c-family/c-opts.c:1240=