1 2 3 4 5 6 7
// PR c++/93596 template <typename> struct A {}; template <typename> struct B {}; template <typename> struct C { void foo () { B a = A<int> { foo }; } // { dg-error "" } };