This was ICEing from r277865 to r278786. Tested on x86_64-linux, applying to trunk.
2019-12-06 Marek Polacek <pola...@redhat.com> PR c++/92451 * g++.dg/overload/error4.C: New test. --- /dev/null +++ gcc/testsuite/g++.dg/overload/error4.C @@ -0,0 +1,6 @@ +// PR c++/92451 + +template<typename T> struct Local {}; +void f() { + Local(int); // { dg-error "" } +}