Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / g++.dg / lookup / friend2.C
blob765c69b67eb4862022a7b8887c2553dee7cb7aae
1 // { dg-do compile }
3 // Origin: Albert Chin <bugzilla-gcc@thewrittenword.com>
4 //         Wolfgang Bangerth <bangerth@dealii.org>
6 // PR c++/14513, unqualified lookup of friend class.
8 struct S {
9     void test (void);
12 namespace NS {
13   class X {
14       friend class S;
15       static int *i;    // { dg-error "private" }
16   };
19 void S::test () {
20   NS::X::i;             // { dg-error "this context" }