template <class T>
 struct Foo
 {};
 
 template <class T>
 void Foo<T>::NON_EXISTENT(int* val = new int()) {} // { dg-error "" }
 


syntax highlighted by Code2HTML, v. 0.9.1