blob: 251db3d56b34e81393784c0504e3382aa8e86053 [file] [log] [blame]
// { dg-do assemble }
// Bug: foo (bar) should be a declaration of a static data member, not a
// function; it's getting caught by the rules for constructors.
typedef int foo;
typedef int bar;
struct A {
static foo (bar); // { dg-bogus "" }
};
int i = A::bar; // { dg-bogus "" }
int (*fp)(bar) = A::foo; // { dg-error "" }