1// PR c++/9336
2// Bug: The first, invalid call to f caused us to crash on the second,
3// valid call.
4
5namespace N {
6  template <class T> void f (T);
7  struct A;
8}
9
10struct B;
11
12void g ()
13{
14  B *bp;
15  N::A *ap;
16  f (bp);			// { dg-error "not declared" }
17  f (ap);
18}
19