// PR c++/93596 template struct A {}; template struct B {}; template struct C { void foo () { B a = A { foo }; } // { dg-error "" } };