https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99008
Bug ID: 99008 Summary: [11 Regression] ICE in set_constraints, at cp/constraint.cc:1256 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Changed between 20200621 and 20200628 : (maybe related to pr93297) $ cat z1.cc template <class> struct A; template <class, class B> using C = A<B>; void *f { C(); } $ g++-11-20210207 -c z1.cc z1.cc:3:13: internal compiler error: in set_constraints, at cp/constraint.cc:1256 3 | void *f { C(); } | ^ 0x6a757e set_constraints(tree_node*, tree_node*) ../../gcc/cp/constraint.cc:1256 0x7b1bd2 alias_ctad_tweaks ../../gcc/cp/pt.c:29025 0x7b1bd2 deduction_guides_for ../../gcc/cp/pt.c:29140 0x7b2042 do_class_deduction ../../gcc/cp/pt.c:29250 0x7b2042 do_auto_deduction(tree_node*, tree_node*, tree_node*, int, auto_deduction_context, tree_node*, int) ../../gcc/cp/pt.c:29420 0x81c535 build_functional_cast_1 ../../gcc/cp/typeck2.c:2208 0x81c535 build_functional_cast(unsigned int, tree_node*, tree_node*, int) ../../gcc/cp/typeck2.c:2308 0x772977 cp_parser_functional_cast ../../gcc/cp/parser.c:30553 0x783bd2 cp_parser_postfix_expression ../../gcc/cp/parser.c:7427 0x793d35 cp_parser_unary_expression ../../gcc/cp/parser.c:8818 0x76d96f cp_parser_cast_expression ../../gcc/cp/parser.c:9722 0x76e1a2 cp_parser_binary_expression ../../gcc/cp/parser.c:9824 0x76e900 cp_parser_assignment_expression ../../gcc/cp/parser.c:10128 0x76fddd cp_parser_constant_expression ../../gcc/cp/parser.c:10424 0x76fe41 cp_parser_initializer_clause ../../gcc/cp/parser.c:24145 0x76ffe4 cp_parser_initializer_list ../../gcc/cp/parser.c:24424 0x76ffe4 cp_parser_braced_list ../../gcc/cp/parser.c:24186 0x772b82 cp_parser_initializer ../../gcc/cp/parser.c:24103 0x79c6b7 cp_parser_init_declarator ../../gcc/cp/parser.c:21745 0x77cf3a cp_parser_simple_declaration ../../gcc/cp/parser.c:14381