From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2CF71396EC6F; Thu, 3 Dec 2020 09:31:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2CF71396EC6F From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/98116] New: [11 Regression] ICE in strip_typedefs, at cp/tree.c:1744 since r11-5663-g329ae1d7751346ba Date: Thu, 03 Dec 2020 09:31:20 +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: 11.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: Thu, 03 Dec 2020 09:31:20 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98116 Bug ID: 98116 Summary: [11 Regression] ICE in strip_typedefs, at cp/tree.c:1744 since r11-5663-g329ae1d7751346ba Product: gcc Version: 11.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: nathan at gcc dot gnu.org Target Milestone: --- The following is reduced from chromium: $ cat file_path.ii namespace std { struct is_convertible; template using remove_pointer_t =3D typename _Tp ::type; template struct enable_if; template void declval(); template using enable_if_t =3D typename enable_if<_Cond>::type; template class Trans_NS___cxx11_basic_string { long _M_string_length; }; } // namespace std struct string16_char_traits; template class std::Trans_NS___cxx11_basic_string; template using IsLegalDataConversion =3D std::is_convertible; template using ContainerHasConvertibleData =3D IsLegalDataConversion< std::remove_pointer_t)>, T>; template using EnableIfSpanCompatibleArray =3D std::enable_if_t::value>; template class span { template [N], std::Trans_NS___cxx11_basic_string, Extent>> span(); }; $ g++ file_path.ii -c file_path.ii:25:73: internal compiler error: in strip_typedefs, at cp/tree.c:1744 25 | std::Trans_NS___cxx11_basic_string, Extent>> |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ^~~~~~ 0x6dd571 strip_typedefs(tree_node*, bool*, unsigned int) /home/marxin/Programming/gcc/gcc/cp/tree.c:1744 0xa3cbb2 canonicalize_type_argument(tree_node*, int) /home/marxin/Programming/gcc/gcc/cp/pt.c:8121 0xa3cbb2 canonicalize_type_argument(tree_node*, int) /home/marxin/Programming/gcc/gcc/cp/pt.c:8116 0xa74cf3 coerce_template_parms /home/marxin/Programming/gcc/gcc/cp/pt.c:8965 0xa6e496 instantiate_alias_template /home/marxin/Programming/gcc/gcc/cp/pt.c:20991 0xa6e496 tsubst(tree_node*, tree_node*, int, tree_node*) /home/marxin/Programming/gcc/gcc/cp/pt.c:15322 0xa7816e lookup_template_class_1 /home/marxin/Programming/gcc/gcc/cp/pt.c:9907 0xa7964c lookup_template_class(tree_node*, tree_node*, tree_node*, tree_nod= e*, int, int) /home/marxin/Programming/gcc/gcc/cp/pt.c:10190 0xaa063b finish_template_type(tree_node*, tree_node*, int) /home/marxin/Programming/gcc/gcc/cp/semantics.c:3442 0xa18b11 cp_parser_template_id /home/marxin/Programming/gcc/gcc/cp/parser.c:16994 0xa18cfc cp_parser_class_name /home/marxin/Programming/gcc/gcc/cp/parser.c:24216 0xa14c45 cp_parser_qualifying_entity /home/marxin/Programming/gcc/gcc/cp/parser.c:6864 0xa14c45 cp_parser_nested_name_specifier_opt /home/marxin/Programming/gcc/gcc/cp/parser.c:6546 0xa036be cp_parser_constructor_declarator_p /home/marxin/Programming/gcc/gcc/cp/parser.c:29163 0xa036be cp_parser_decl_specifier_seq /home/marxin/Programming/gcc/gcc/cp/parser.c:14576 0xa2122e cp_parser_parameter_declaration /home/marxin/Programming/gcc/gcc/cp/parser.c:23278 0xa222bb cp_parser_template_parameter /home/marxin/Programming/gcc/gcc/cp/parser.c:16569 0xa222bb cp_parser_template_parameter_list /home/marxin/Programming/gcc/gcc/cp/parser.c:16160 0xa2cda2 cp_parser_explicit_template_declaration /home/marxin/Programming/gcc/gcc/cp/parser.c:29828 0x9fff48 cp_parser_member_specification_opt /home/marxin/Programming/gcc/gcc/cp/parser.c:25313 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions.=