This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
ICE: deriving class template's class member outside template definition
- To: gcc-bugs at gcc dot gnu dot org
- Subject: ICE: deriving class template's class member outside template definition
- From: Marco Franzen <Marco dot Franzen at Thyron dot com>
- Date: Wed, 16 Aug 2000 14:03:05 +0100
- Organization: Thyron Limited, UK
20000814 (as well as the 2.95.2 release) chokes on this.
That happens only if the member is defined outside and is derived
(from anything - when I ran into this, the base was an instantiation of
unary_function).
========================================
class BaseOfInner {};
template<class C>
class Outer
{
struct Inner;
};
template<class C>
struct Outer<C>::Inner: BaseOfInner
{
};
=========================================
GNU C++ version 2.96 20000814 (experimental) (i586-sco-sysv5uw7.1.0) compiled by GNU C version 2.96 20000814 (experimental).
lazyptr.cpp:11: Tree check: expected tree_vec, have identifier_node
lazyptr.cpp:11: Internal compiler error in xref_basetypes, at
../egcs-20000814/gcc/cp/decl.c:12949
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
-----------------------------------------------------------------
This email is confidential and intended solely for the use of the
individual to whom it is addressed.
Any views or opinions presented are solely those of the author
and do not necessarily represent those of Thyron Limited.
If you are not the intended recipient then please be advised
that you have received this email in error and that any use,
dissemination, forwarding, printing or copying of this email
is strictly prohibited.
If you have received this email in error, please notify the
Thyron IT Administrator on +44 (0)1923 236 050 or
send an email to mail-admin@thyron.com.
Thank You