blob: f6f4863e937370436f80bdca5ffdaa4c8be90661 [file] [log] [blame]
// PR c++/97993
// { dg-do compile { target c++14 } }
template <class T> T a;
template <class T, class A, class=decltype(::new T (A()))> auto foo ();
struct S decltype (foo <int, S>); // { dg-error "" }