Debian Codegraph @

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

raw
1 // { dg-do assemble }
2 // Bug: Foo<Bar> *p semi-instantiates Foo<Bar> in local scope, so
3 // when Foo<Bar> f tries to instantiate it later, it only finds the partial
4 // instantiation from before.
5 //
6 // No PR; distilled from James Clark's SGML project.
7 //
8
9 class Bar { };
10
11 template<class T> class Foo;
12
13 Foo<Bar> *p;
14
15 template<class T> class Foo { };
16
17 Foo<Bar> f; // { dg-bogus "" } hosed binding levels