From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 89B813948494; Fri, 17 Apr 2020 07:41:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 89B813948494 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1587109270; bh=2urSUqK0UTDXHt23g+qMlhUW9VBv+Md++nGjyPGmTN0=; h=From:To:Subject:Date:From; b=NyYBKglr5AQDiONtoek00uefJgSyYZFUraaZOAGJrnSQ6pgDM7OuW1DIn+9SDA0+N Q4uwkK3K7pTwVRmBds4elaKYyjXNy2rwH0JL2e6pHfWt09iumlK+kpaUywqGPsC8kd 9msDFZdLm/mzVKPVqo5i7Vnb4sWfJdzNgLUOTcg0= From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/94632] New: [10 Regression] canonical types differ for identical types since r10-7622-g12f55e030ed068d5 Date: Fri, 17 Apr 2020 07:41:10 +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: 10.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin 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 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 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: Fri, 17 Apr 2020 07:41:10 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94632 Bug ID: 94632 Summary: [10 Regression] canonical types differ for identical types since r10-7622-g12f55e030ed068d5 Product: gcc Version: 10.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: ppalka at gcc dot gnu.org Target Milestone: --- It affects the build of libqt5-qtwebengine package: $ cat wtf.ii template struct a; template struct b; template class c { template void d(f e, typename b::h>::g); public: static bool h; }; bool h =3D c::h; $ g++ wtf.ii -c wtf.ii: In instantiation of =E2=80=98class c=E2=80=99: wtf.ii:8:16: required from here wtf.ii:4:30: internal compiler error: canonical types differ for identical types =E2=80=98b::h>=E2=80=99 and =E2=80=98b::h>=E2=80=99 4 | template void d(f e, typename b::h>::= g); | ^ 0xb29f7d comptypes(tree_node*, tree_node*, int) /home/marxin/Programming/gcc/gcc/cp/typeck.c:1519 0xb299d4 structural_comptypes /home/marxin/Programming/gcc/gcc/cp/typeck.c:1410 0xace7ba maybe_rebuild_function_decl_type /home/marxin/Programming/gcc/gcc/cp/pt.c:13541 0xace7ba tsubst_function_decl /home/marxin/Programming/gcc/gcc/cp/pt.c:13778 0xad0c90 tsubst_template_decl /home/marxin/Programming/gcc/gcc/cp/pt.c:14018 0xab94ee tsubst_decl /home/marxin/Programming/gcc/gcc/cp/pt.c:14140 0xac2ef7 tsubst(tree_node*, tree_node*, int, tree_node*) /home/marxin/Programming/gcc/gcc/cp/pt.c:15026 0xade994 instantiate_class_template_1 /home/marxin/Programming/gcc/gcc/cp/pt.c:11728 0xade994 instantiate_class_template(tree_node*) /home/marxin/Programming/gcc/gcc/cp/pt.c:12036 0xb2579d complete_type(tree_node*) /home/marxin/Programming/gcc/gcc/cp/typeck.c:137 0xa76193 cp_parser_nested_name_specifier_opt /home/marxin/Programming/gcc/gcc/cp/parser.c:6639 0xa7302e cp_parser_simple_type_specifier /home/marxin/Programming/gcc/gcc/cp/parser.c:18126 0xa744e7 cp_parser_postfix_expression /home/marxin/Programming/gcc/gcc/cp/parser.c:7173 0xa7d28f cp_parser_unary_expression /home/marxin/Programming/gcc/gcc/cp/parser.c:8560 0xa5421f cp_parser_cast_expression /home/marxin/Programming/gcc/gcc/cp/parser.c:9451 0xa54a59 cp_parser_binary_expression /home/marxin/Programming/gcc/gcc/cp/parser.c:9554 0xa564de cp_parser_assignment_expression /home/marxin/Programming/gcc/gcc/cp/parser.c:9859 0xa5548d cp_parser_constant_expression /home/marxin/Programming/gcc/gcc/cp/parser.c:10153 0xa55a51 cp_parser_initializer_clause /home/marxin/Programming/gcc/gcc/cp/parser.c:23216 0xa59cc7 cp_parser_initializer /home/marxin/Programming/gcc/gcc/cp/parser.c:23154 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions.=