diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/parse5.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/parse5.C | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/parse5.C b/gcc/testsuite/g++.old-deja/g++.jason/parse5.C new file mode 100644 index 000000000..251db3d56 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/parse5.C @@ -0,0 +1,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 "" } |