diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/pmem.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/pmem.C | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/pmem.C b/gcc/testsuite/g++.old-deja/g++.jason/pmem.C new file mode 100644 index 000000000..90c612263 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/pmem.C @@ -0,0 +1,11 @@ +// { dg-do assemble } +// Bug: g++ parses the declaration of 'char A::* foo' below as a +// declaration of 'char A'. + +class A { }; +typedef int foo; +void f () +{ + char A::* foo; + foo = 0; // { dg-bogus "" } parsing blunder +} |