https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60223
--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Still ICEs: $ ./cc1plus -quiet 60223.C 60223.C: In substitution of ‘template<class T> void foo(A<T>) [with T = <missing>]’: 60223.C:7:16: required from here 60223.C:7:16: internal compiler error: in unify, at cp/pt.c:22789 7 | foo(A<char>()); | ^ 0xaef167 unify /home/mpolacek/src/gcc/gcc/cp/pt.c:22789 0xaed61d unify /home/mpolacek/src/gcc/gcc/cp/pt.c:22553 0xae91d1 try_class_unification /home/mpolacek/src/gcc/gcc/cp/pt.c:21548 0xaeda43 unify /home/mpolacek/src/gcc/gcc/cp/pt.c:22590 0xae68b1 unify_one_argument /home/mpolacek/src/gcc/gcc/cp/pt.c:20781 0xae6d48 type_unification_real /home/mpolacek/src/gcc/gcc/cp/pt.c:20900 0xae503f fn_type_unification(tree_node*, tree_node*, tree_node*, tree_node* const*, unsigned int, tree_node*, unification_kind_t, int, conversion**, bool, bool) /home/mpolacek/src/gcc/gcc/cp/pt.c:20280 0x85a35a add_template_candidate_real /home/mpolacek/src/gcc/gcc/cp/call.c:3315 0x85a8ec add_template_candidate /home/mpolacek/src/gcc/gcc/cp/call.c:3400 0x862c22 add_candidates /home/mpolacek/src/gcc/gcc/cp/call.c:5724 0x85da1f perform_overload_resolution /home/mpolacek/src/gcc/gcc/cp/call.c:4396 0x85dc90 build_new_function_call(tree_node*, vec<tree_node*, va_gc, vl_embed>**, int) /home/mpolacek/src/gcc/gcc/cp/call.c:4470 0xb31529 finish_call_expr(tree_node*, vec<tree_node*, va_gc, vl_embed>**, bool, bool, int) /home/mpolacek/src/gcc/gcc/cp/semantics.c:2584 0xa28a9c cp_parser_postfix_expression /home/mpolacek/src/gcc/gcc/cp/parser.c:7375 0xa2b334 cp_parser_unary_expression /home/mpolacek/src/gcc/gcc/cp/parser.c:8461 0xa2c78e cp_parser_cast_expression /home/mpolacek/src/gcc/gcc/cp/parser.c:9346 0xa2c87b cp_parser_binary_expression /home/mpolacek/src/gcc/gcc/cp/parser.c:9449 0xa2d639 cp_parser_assignment_expression /home/mpolacek/src/gcc/gcc/cp/parser.c:9747 0xa2d9c4 cp_parser_expression /home/mpolacek/src/gcc/gcc/cp/parser.c:9914 0xa313ff cp_parser_expression_statement /home/mpolacek/src/gcc/gcc/cp/parser.c:11515 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.