1 // PR c++/38635
2 // { dg-do compile }
3 
foo()4 void foo()
5 {
6   if (struct A{}// { dg-error "types may not be defined|expected" }
7