From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0B836384D180; Tue, 14 Jun 2022 21:11:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0B836384D180 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/105982] New: [13 Regression] internal compiler error: in lookup_template_class, at cp/pt.cc:10361 Date: Tue, 14 Jun 2022 21:11:52 +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: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org 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 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: Tue, 14 Jun 2022 21:11:53 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105982 Bug ID: 105982 Summary: [13 Regression] internal compiler error: in lookup_template_class, at cp/pt.cc:10361 Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Target Milestone: --- I think this is a new-ish regression. It happens when running the libstdc++ testsuite with -std=3Dc++20 i.e. in the $target/libstdc++-v3 build dir: make check RUNTESTFLAGS=3D"conformance.exp=3D21_strings/*/deduction.cc --target_board=3Dunix/-std=3Dgnu++20" In file included from /home/jwakely/src/gcc/build/x86_64-pc-linux-gnu/libstdc++-v3/include/string= :52, from /home/jwakely/src/gcc/gcc/libstdc++-v3/testsuite/21_strings/basic_string/co= ns/char/deduction.cc:20: /home/jwakely/src/gcc/build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/b= asic_string.h: In substitution of 'template basic_string(typename std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_Alloc_traits_impl<_Traits, void>::size_type, _CharT, const _Alloc= &)-> std::__cxx11::basic_string<_CharT, _Traits, _Alloc> [with _CharT =3D std::allocator; _Traits =3D std::char_traits >; = _Alloc =3D std::allocator >; =3D std::allocator >]': /home/jwakely/src/gcc/gcc/libstdc++-v3/testsuite/21_strings/basic_string/co= ns/char/deduction.cc:53: required from here /home/jwakely/src/gcc/build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/b= asic_string.h:656: internal compiler error: in lookup_template_class, at cp/pt.cc:10361 0x71a527 lookup_template_class(tree_node*, tree_node*, tree_node*, tree_nod= e*, int, int) /home/jwakely/src/gcc/gcc/gcc/cp/pt.cc:10361 0xb638d1 tsubst_aggr_type /home/jwakely/src/gcc/gcc/gcc/cp/pt.cc:13802 0xb638d1 tsubst_aggr_type /home/jwakely/src/gcc/gcc/gcc/cp/pt.cc:13753 0xb57c74 tsubst(tree_node*, tree_node*, int, tree_node*) /home/jwakely/src/gcc/gcc/gcc/cp/pt.cc:16282 0xb643d4 tsubst_arg_types /home/jwakely/src/gcc/gcc/gcc/cp/pt.cc:15251 0xb64759 tsubst_arg_types /home/jwakely/src/gcc/gcc/gcc/cp/pt.cc:15228 0xb64759 tsubst_function_type /home/jwakely/src/gcc/gcc/gcc/cp/pt.cc:15406 0xb5766e tsubst(tree_node*, tree_node*, int, tree_node*) /home/jwakely/src/gcc/gcc/gcc/cp/pt.cc:16200 0xb3ebe6 tsubst_function_decl /home/jwakely/src/gcc/gcc/gcc/cp/pt.cc:14179 0xb4198a tsubst_decl /home/jwakely/src/gcc/gcc/gcc/cp/pt.cc:14656 0xb56bf6 instantiate_template(tree_node*, tree_node*, int) /home/jwakely/src/gcc/gcc/gcc/cp/pt.cc:21776 0xb6c88a fn_type_unification(tree_node*, tree_node*, tree_node*, tree_node* const*, unsigned int, tree_node*, unification_kind_t, int, conversion**, bo= ol, bool) /home/jwakely/src/gcc/gcc/gcc/cp/pt.cc:22289 0x960b81 add_template_candidate_real /home/jwakely/src/gcc/gcc/gcc/cp/call.cc:3555 0x961bc3 add_template_candidate /home/jwakely/src/gcc/gcc/gcc/cp/call.cc:3643 0x961bc3 add_candidates /home/jwakely/src/gcc/gcc/gcc/cp/call.cc:6191 0x967d37 add_candidates /home/jwakely/src/gcc/gcc/gcc/cp/call.cc:4717 0x967d37 perform_overload_resolution /home/jwakely/src/gcc/gcc/gcc/cp/call.cc:4725 0x968179 perform_dguide_overload_resolution(tree_node*, vec const*, int) /home/jwakely/src/gcc/gcc/gcc/cp/call.cc:4789 0xb32b93 do_class_deduction /home/jwakely/src/gcc/gcc/gcc/cp/pt.cc:30214 0xb32b93 do_auto_deduction(tree_node*, tree_node*, tree_node*, int, auto_deduction_context, tree_node*, int) /home/jwakely/src/gcc/gcc/gcc/cp/pt.cc:30302 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.=