1 // { dg-do assemble } 2 // Bug: foo (bar) should be a declaration of a static data member, not a 3 // function; it's getting caught by the rules for constructors. 4 5 typedef int foo; 6 typedef int bar; 7 struct A { 8 static foo (bar); // { dg-bogus "" } 9 }; 10 11 int i = A::bar; // { dg-bogus "" } 12 int (*fp)(bar) = A::foo; // { dg-error "" } 13