blob: 251db3d56b34e81393784c0504e3382aa8e86053 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// { 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 "" }
|