mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-24 22:59:52 +08:00
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:
parent
39c1728ea7
commit
baf7e33b41
16
gcc/testsuite/g++.old-deja/g++.pt/explicit80.C
Normal file
16
gcc/testsuite/g++.old-deja/g++.pt/explicit80.C
Normal 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>;
|
Loading…
Reference in New Issue
Block a user