pt.c (do_type_instantiation): Add complain parm; don't complain if called recursively.

* pt.c (do_type_instantiation): Add complain parm; don't complain
        if called recursively.
        * cp-tree.h, parse.y: Adjust.

From-SVN: r35498
This commit is contained in:
Jason Merrill 2000-08-04 20:38:24 -04:00
parent 39c1728ea7
commit baf7e33b41

View File

@ -0,0 +1,16 @@
// Bug: We were complaining about explicit instantiation of A<T>::B.
// Build don't link:
template <class T>
struct A
{
public:
~A() { };
class B;
};
class A<int>::B { };
template class A<int>;
template class A<double>;