public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "johelegp at gmail dot com" <gcc-bugzilla@gcc.gnu.org> 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 [thread overview] Message-ID: <bug-107033-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107033 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=/home/johel/root/gcc/bin/g++ echo "./std.hpp std.gcm mod mod.gcm" > mm.txt echo "#include <array> #include <span>" > std.hpp echo "export module mod; import \"std.hpp\"; constexpr std::array<int, 1> a = {}; export constexpr std::span s = a;" > mod.cpp $CXX -std=c++23 -fmodules-ts -fmodule-mapper=mm.txt -x c++-header -c std.hpp $CXX -std=c++23 -fmodules-ts -fmodule-mapper=mm.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*), void*) ???:0 0xafa362 depset::hash::add_specializations(bool) ???:0 0xb0ab3c module_state::write_begin(elf_out*, cpp_reader*, module_state_config&, 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 <https://bugs.archlinux.org/> for instructions. ```
next reply other threads:[~2022-09-25 14:08 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-09-25 14:08 johelegp at gmail dot com [this message] 2022-09-25 16:08 ` [Bug c++/107033] " johelegp at gmail dot com 2022-09-25 16:09 ` johelegp at gmail dot com 2022-09-25 16:32 ` [Bug c++/107033] [13 Regression] [modules] ICE using span as a range johelegp at gmail dot com 2022-09-25 17:12 ` johelegp at gmail dot com 2022-09-26 9:27 ` [Bug c++/107033] [13 Regression] [modules] Variable template of type trait via importable header gives wrong result rguenth at gcc dot gnu.org 2022-09-26 13:07 ` ppalka at gcc dot gnu.org 2022-09-26 15:31 ` cvs-commit at gcc dot gnu.org 2022-09-29 21:07 ` ppalka 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-107033-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).