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 00000000000..519deb2867a --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/parse5.C @@ -0,0 +1,12 @@ +// Bug: foo (bar) should be a declaration of a static data member, not a +// function; it's getting caught by the rules for constructors. +// Build don't link: + +typedef int foo; +typedef int bar; +struct A { + static foo (bar); // gets bogus error +}; + +int i = A::bar; // gets bogus error +int (*fp)(bar) = A::foo; // ERROR - |