Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / g++.dg / lookup / friend6.C
blobe3dafb1d6b55bf55796a03c828edfbeb036cf93b
1 // { dg-do compile }
3 // Origin: Matt Austern <austern@apple.com>
5 // PR c++/19258: Wrong lookup scope for friend defined in class.
7 class X {
8   template<class T> friend int ff(T*, int y=anX.x) { return y; }
9   int f() { return ff(&anX); }
11   static X anX;
12   int x;
15 X dummy;