From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 15F6F3858C52; Sun, 25 Sep 2022 17:12:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 15F6F3858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664125960; bh=rmrhuvDvs0V2s3cvz2LFXv34FH6oY4uSVEXdQm4wW28=; h=From:To:Subject:Date:In-Reply-To:References:From; b=FQfYrCrUYLrWaPHZYIl9dPqb/WvdZU57yNxKmsnY0VLuu4KY0fXpoM5TwoeZUcudA a9yIwOkxowX0AHVo3uOYLlRzVAobbtPi0+Ls14fQt3TVZekZy555KNJp+LsSxDkslF 7mfJz8BK+zSaM4ULpCgwbQWG5MJriHKXsWg3q+AQ= From: "johelegp at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107033] [13 Regression] [modules] ICE using span as a range Date: Sun, 25 Sep 2022 17:12:39 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ice-on-valid-code, 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: Message-ID: In-Reply-To: References: 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 --- Comment #4 from Johel Ernesto Guerrero Pe=C3=B1a --- This is actually Bug 106826. Simplest: https://godbolt.org/z/oKT4x9r4G. ```C++ template constexpr bool is =3D false; template constexpr bool is =3D true; ``` ```C++ export module mod; import "std.hpp"; static_assert(is); ``` ``` mod.cpp:1:8: internal compiler error: Segmentation fault 1 | export module mod; | ^~~~~~ 0x234bd6e internal_error(char const*, ...) ???:0 0xc84cfe walk_specializations(bool, void (*)(bool, spec_entry*, void*), voi= d*) ???:0 0xbead4c depset::hash::add_specializations(bool) ???:0 0xbfb5a8 module_state::write_begin(elf_out*, cpp_reader*, module_state_conf= ig&, unsigned int&) ???:0 0xbfcd45 finish_module_processing(cpp_reader*) ???:0 0xb89d2e c_parse_final_cleanups() ???:0 0xdb0cc8 c_common_parse_file() ???:0 ```=