1 // PR c++/39681
2 // { dg-do compile { target c++11 } }
3 
4 struct A
5 {
6   int* p = new foo; // { dg-error "16:foo. does not name a type" }
7 };
8