This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c++/5161: g++ 2.95.3 ice on derived member class of a template class



>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]