1 2 3 4 5 6 7
template <class T> struct Foo {}; template <class T> void Foo<T>::NON_EXISTENT(int* val = new int()) {} // { dg-error "" }