summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/pmem.C
blob: 90c61226352964746f8f2130a7dd28d39f8729bc (plain)
1
2
3
4
5
6
7
8
9
10
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
}