FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / parse5.C
blob519deb2867a3887d63e0cfd1c56e436b71c669d6
1 // Bug: foo (bar) should be a declaration of a static data member, not a
2 // function; it's getting caught by the rules for constructors.
3 // Build don't link:
5 typedef int foo;
6 typedef int bar;
7 struct A {
8   static foo (bar);             // gets bogus error
9 };
11 int i = A::bar;                 // gets bogus error
12 int (*fp)(bar) = A::foo;        // ERROR -