2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / parse / access2.C
blobee8cd234e070ceeecf3bf7fbb302c54aaec4b195
1 // Copyright (C) 2003 Free Software Foundation
2 // Contributed by Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3 // { dg-do compile }
5 // Deferred access checking of variable declaration.
7 class A {
8   typedef int X;        // { dg-error "private" }
9   static X a, b, c;
12 A::X A::a;
13 A::X A::b, x;           // { dg-error "this context" }
14 A::X y, A::c;           // { dg-error "this context" }
15 A::X z;                 // { dg-error "this context" }