From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A953D3840C0B; Mon, 1 Feb 2021 08:53:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A953D3840C0B From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/98899] [10/11 Regression] ICE in tsubst_copy, at cp/pt.c:16198 since r10-1280-g78f7607db4c53f8c Date: Mon, 01 Feb 2021 08:53:24 +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: 10.2.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: target_milestone bug_status short_desc cc cf_reconfirmed_on keywords everconfirmed cf_known_to_work cf_known_to_fail 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, 01 Feb 2021 08:53:24 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98899 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |10.3 Status|UNCONFIRMED |NEW Summary|ICE: Illegal instruction: 4 |[10/11 Regression] ICE in |"error: could not convert |tsubst_copy, at |'' from |cp/pt.c:16198 since |'''" on |r10-1280-g78f7607db4c53f8c |macOS | CC| |marxin at gcc dot gnu.org, | |mpolacek at gcc dot gnu.org Last reconfirmed| |2021-02-01 Keywords| |ice-on-valid-code Ever confirmed|0 |1 Known to work| |9.3.0 Known to fail| |10.2.0, 11.0 --- Comment #3 from Martin Li=C5=A1ka --- Thank you for the bug report. Reduce test-case: $ cat pr98899.ii template struct integral_constant { static constexpr int value =3D __v; }; template struct conditional; template struct __and_; template struct __and_<_B1, _B2> : conditional<_B1>::type {}; template struct __is_nt_constructible_impl : integral_constant<0> {}; template struct is_nothrow_constructible : __and_> {}; template struct conditional { typedef __is_nt_constructible_impl<> type; }; class locale { struct token { enum {} typedef yytokentype; }; template struct basic_symbol { basic_symbol(typename Base::kind_type, int) noexcept(is_nothrow_constructible<>::value); }; struct by_kind { typedef token::yytokentype kind_type; }; struct symbol_type : basic_symbol { int symbol_type_v; symbol_type() : basic_symbol(token::yytokentype(), symbol_type_v) {} }; }; $ g++ pr98899.ii -c -Werror pr98899.ii: In instantiation of =E2=80=98locale::basic_symbol::basic_symbol(typename Base::kind_type,= int) [with Base =3D locale::by_kind; typename Base::kind_type =3D locale::token::yytokentype]=E2=80=99: pr98899.ii:29:69: required from here pr98899.ii:21:5: internal compiler error: in tsubst_copy, at cp/pt.c:17205 21 | basic_symbol(typename Base::kind_type, | ^~~~~~~~~~~~ 0x6e0e47 tsubst_copy /home/marxin/Programming/gcc/gcc/cp/pt.c:17205 0xb24f7e tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, boo= l, bool) /home/marxin/Programming/gcc/gcc/cp/pt.c:20789 0xb28755 maybe_instantiate_noexcept(tree_node*, int) /home/marxin/Programming/gcc/gcc/cp/pt.c:25592 0xb2833c maybe_instantiate_noexcept(tree_node*, int) /home/marxin/Programming/gcc/gcc/cp/pt.c:25535 0xa194ca mark_used(tree_node*, int) /home/marxin/Programming/gcc/gcc/cp/decl2.c:5610 0x9623a5 build_over_call /home/marxin/Programming/gcc/gcc/cp/call.c:9351 0x95f722 build_new_method_call_1 /home/marxin/Programming/gcc/gcc/cp/call.c:10637 0x95f722 build_new_method_call(tree_node*, tree_node*, vec**, tree_node*, int, tree_node**, int) /home/marxin/Programming/gcc/gcc/cp/call.c:10712 0x960a86 build_special_member_call(tree_node*, tree_node*, vec**, tree_node*, int, int) /home/marxin/Programming/gcc/gcc/cp/call.c:10113 0xa385ca expand_default_init /home/marxin/Programming/gcc/gcc/cp/init.c:1983 0xa385ca expand_aggr_init_1 /home/marxin/Programming/gcc/gcc/cp/init.c:2098 0xa3fb1b emit_mem_initializers(tree_node*) /home/marxin/Programming/gcc/gcc/cp/init.c:1354 0xaf39b9 cp_parser_mem_initializer_list /home/marxin/Programming/gcc/gcc/cp/parser.c:15907 0xaf39b9 cp_parser_ctor_initializer_opt /home/marxin/Programming/gcc/gcc/cp/parser.c:15815 0xaf39b9 cp_parser_ctor_initializer_opt_and_function_body /home/marxin/Programming/gcc/gcc/cp/parser.c:24027 0xaf511a cp_parser_function_definition_after_declarator /home/marxin/Programming/gcc/gcc/cp/parser.c:29938 0xaf5624 cp_parser_late_parsing_for_member /home/marxin/Programming/gcc/gcc/cp/parser.c:30845 0xacea63 cp_parser_class_specifier_1 /home/marxin/Programming/gcc/gcc/cp/parser.c:25104 0xacfa7b cp_parser_class_specifier /home/marxin/Programming/gcc/gcc/cp/parser.c:25128 0xacfa7b cp_parser_type_specifier /home/marxin/Programming/gcc/gcc/cp/parser.c:18381 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions.=