Re: C++ PATCH for c++/60223 - ICE with T{} in non-deduced context

2019-06-21 Thread Jason Merrill
On 6/18/19 11:54 AM, Marek Polacek wrote: Here we ICE on template // #1 struct A {}; template void foo(A) {} void bar() { foo(A()); } when deducing T in the non-type template parameter, because unify didn't expect a CONSTRUCTOR: default: /* An unresolved overload is a

C++ PATCH for c++/60223 - ICE with T{} in non-deduced context

2019-06-18 Thread Marek Polacek
Here we ICE on template // #1 struct A {}; template void foo(A) {} void bar() { foo(A()); } when deducing T in the non-type template parameter, because unify didn't expect a CONSTRUCTOR: default: /* An unresolved overload is a nondeduced context. */ if (is_overloaded_f