svn merge -r102224:107263 svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-3_4-branch
[official-gcc.git] / gcc / testsuite / g++.dg / overload / koenig1.C
blob1ed7bce0b146d95f4db7b88a9be408a87d2331a5
1 // PR c++/9336
2 // Bug: The first, invalid call to f caused us to crash on the second,
3 // valid call.
5 namespace N {
6   template <class T> void f (T);
7   struct A;
10 struct B;
12 void g ()
14   B *bp;
15   N::A *ap;
16   f (bp);                       // { dg-error "not declared" }
17   f (ap);