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 5typedef int foo; 6typedef int bar; 7struct A { 8 static foo (bar); // { dg-bogus "" } 9}; 10 11int i = A::bar; // { dg-bogus "" } 12int (*fp)(bar) = A::foo; // { dg-error "" } 13