tree-optimization/114855 - more update_ssa speedup
[official-gcc.git] / gcc / testsuite / g++.dg / overload / koenig1.C
blob550806124229cc805f5ab21420f1926ae077ea94
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); // { dg-message "N::f" }
7   struct A;
10 struct B;
12 void g ()
14   B *bp;
15   N::A *ap;
16   f (bp);                       // { dg-error "3:'f' was not declared in this scope; did you mean 'N::f'" }
17   f (ap);