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