Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.jason/pmem.C

raw
1 // { dg-do assemble }
2 // Bug: g++ parses the declaration of 'char A::* foo' below as a
3 // declaration of 'char A'.
4
5 class A { };
6 typedef int foo;
7 void f ()
8 {
9 char A::* foo;
10 foo = 0; // { dg-bogus "" } parsing blunder
11 }