1// { dg-do assemble  }
2// PRMS Id: 3988
3// Bug: DECL_CONTEXT of A::B gets clobbered in pushdecl when defining A::foo().
4
5#pragma implementation "context.h"
6#line 1 "context.h"
7#pragma interface
8
9template <class T>
10struct A {
11  inline void foo () { }
12  class B { };
13};
14
15struct C : public A<int> {
16  void bar (C::B&);
17};
18#line 2 "context.C"
19
20void C::bar (C::B& b) { }
21