From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9F0A03857431; Sun, 25 Sep 2022 14:08:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9F0A03857431 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664114895; bh=cWNNBprlohPrsXTfesVKCEI/ac0omDujxiI5U5qhqco=; h=From:To:Subject:Date:From; b=dAGitRG62o2nbNYUp44GDzrw8xSl/spdFzIuYQWcSJxJlDMalkW2HCgFvhM26rYXj XuxahpbnvXXtvvRksPUr2gsFgt/ozJhXkfP+eP1yW9wUZ0MWT87/2hGBZfILMDOFxZ Xri5d+DtFoQKljZ/fLDQOfvtOfpZYRri1wN8ywZQ= From: "johelegp at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107033] New: [13 Regression] [modules] ICE converting to span Date: Sun, 25 Sep 2022 14:08:15 +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: 13.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: johelegp at gmail dot com 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 cc 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107033 Bug ID: 107033 Summary: [13 Regression] [modules] ICE converting to span Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: johelegp at gmail dot com CC: johelegp at gmail dot com Target Milestone: --- See GCC trunk: https://godbolt.org/z/KoP5qo1Ks. See GCC 12: https://godbolt.org/z/EfGjdcYaW. ```sh CXX=3D/home/johel/root/gcc/bin/g++ echo "./std.hpp std.gcm mod mod.gcm" > mm.txt echo "#include #include " > std.hpp echo "export module mod; import \"std.hpp\"; constexpr std::array a =3D {}; export constexpr std::span s =3D a;" > mod.cpp $CXX -std=3Dc++23 -fmodules-ts -fmodule-mapper=3Dmm.txt -x c++-header -c st= d.hpp $CXX -std=3Dc++23 -fmodules-ts -fmodule-mapper=3Dmm.txt -c mod.cpp ``` Output: ``` mod.cpp:1:8: internal compiler error: Segmentation fault 1 | export module mod; | ^~~~~~ 0x22c23ec internal_error(char const*, ...) ???:0 0xba7787 walk_specializations(bool, void (*)(bool, spec_entry*, void*), voi= d*) ???:0 0xafa362 depset::hash::add_specializations(bool) ???:0 0xb0ab3c module_state::write_begin(elf_out*, cpp_reader*, module_state_conf= ig&, unsigned int&) ???:0 0xb0c044 finish_module_processing(cpp_reader*) ???:0 0xa95334 c_parse_final_cleanups() ???:0 0xccde92 c_common_parse_file() ???:0 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. ```=