Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.jason/context.C

raw
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
9 template <class T>
10 struct A {
11 inline void foo () { }
12 class B { };
13 };
14
15 struct C : public A<int> {
16 void bar (C::B&);
17 };
18 #line 2 "context.C"
19
20 void C::bar (C::B& b) { }