1 // { dg-do assemble } 2 // GROUPS passed enums 3 class X { 4 struct X1; 5 enum { A= sizeof(X1 *) }; //Causes a problem. 6 struct X1 { int i; }; 7 X1 *f(X1 *); 8 public: 9 X(void); 10 }; 11 f(X1 * x)12 X::X1 *X::f(X1 *x) { 13 return x; 14 } 15