From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5123C385742A; Mon, 4 Jul 2022 03:28:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5123C385742A From: "johelegp at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/105044] [modules] ICE in comptypes, at cp/typeck.cc:1531 Date: Mon, 04 Jul 2022 03:28:30 +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: 12.0 X-Bugzilla-Keywords: ice-on-valid-code 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 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: Mon, 04 Jul 2022 03:28:30 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105044 --- Comment #3 from Johel Ernesto Guerrero Pe=C3=B1a --- Enough recompilations from the actual use-case show this error: ``` /home/johel/Documents/C++/Repos/Waarudo/tests/unit/test.waarudo.quantities.= cpp: In substitution of =E2=80=98template struct waarudo::is_unit@waarudo.quantities*> [with auto ...D =3D {waarudo::ratio@waarudo.quantities{146097, 400},= (& waarudo::day@waarudo.quantities)}]=E2=80=99: /home/johel/Documents/C++/Repos/Waarudo/tests/unit/test.waarudo.quantities.= cpp:21:57: required from here /home/johel/Documents/C++/Repos/Waarudo/tests/unit/test.waarudo.quantities.= cpp:21:57: internal compiler error: tree check: expected tree that contains =E2=80=98t= yped=E2=80=99 structure, have =E2=80=98ggc_freed=E2=80=99 in convert_nontype_argument, at= cp/pt.cc:7763 21 | static_assert(waarudo::is_unit::value); | ^~ 0x226d11c internal_error(char const*, ...) ???:0 0x8d094f tree_contains_struct_check_failed(tree_node const*, tree_node_structure_enum, char const*, int, char const*) ???:0 0xbc4daa lookup_template_class(tree_node*, tree_node*, tree_node*, tree_nod= e*, int, int) ???:0 0xbafdb7 tsubst(tree_node*, tree_node*, int, tree_node*) ???:0 0xbbf9eb tsubst_template_args(tree_node*, tree_node*, int, tree_node*) ???:0 0xbae4e6 most_specialized_partial_spec(tree_node*, int) ???:0 0xbd7a1c instantiate_class_template(tree_node*) ???:0 0xc2fe01 complete_type(tree_node*) ???:0 0xb7a0db c_parse_file() ???:0 0xcb9cd1 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. ```=