2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / overload / koenig1.C
blobdd38e720acf70b3f7aa11aa8f999ef2b27183935
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 "undeclared" }
17   f (ap);