diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/tredecl.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/tredecl.C | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/tredecl.C b/gcc/testsuite/g++.old-deja/g++.jason/tredecl.C new file mode 100644 index 000000000..df800603f --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/tredecl.C @@ -0,0 +1,17 @@ +// { dg-do assemble } +// Bug: Foo<Bar> *p semi-instantiates Foo<Bar> in local scope, so +// when Foo<Bar> f tries to instantiate it later, it only finds the partial +// instantiation from before. +// +// No PR; distilled from James Clark's SGML project. +// + +class Bar { }; + +template<class T> class Foo; + +Foo<Bar> *p; + +template<class T> class Foo { }; + +Foo<Bar> f; // { dg-bogus "" } hosed binding levels |