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 9class Bar { }; 10 11template<class T> class Foo; 12 13Foo<Bar> *p; 14 15template<class T> class Foo { }; 16 17Foo<Bar> f; // { dg-bogus "" } hosed binding levels 18