This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c++/5161: g++ 2.95.3 ice on derived member class of a template class
- From: meinlschmidt at informatik dot uni-erlangen dot de
- To: gcc-gnats at gcc dot gnu dot org
- Date: 19 Dec 2001 13:30:50 -0000
- Subject: c++/5161: g++ 2.95.3 ice on derived member class of a template class
- Reply-to: meinlschmidt at informatik dot uni-erlangen dot de
>Number: 5161
>Category: c++
>Synopsis: g++ 2.95.3 ice on derived member class of a template class
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Wed Dec 19 05:36:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: meinlschmidt@informatik.uni-erlangen.de
>Release: gcc version 2.95.3 20010315 (SuSE)
>Organization:
>Environment:
vanilla SuSE 7.2 Linux on x86
>Description:
g++-bug.C:12: Internal compiler error.
g++-bug.C:12: Please submit a full bug report.
g++-bug.C:12: See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
// g++-bug.C
class Base {};
template<typename T>
class Outer {
class Derived;
};
template<typename T>
class Outer<T>::Derived:public Base
{ // <--- *clunk*
};
// now say ``g++ g++-bug.C´´
>Fix:
Workaround:
Move the member class out of Outer:
template<typename T> class Workaround:public Base {};
>Release-Note:
>Audit-Trail:
>Unformatted: