This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/4868: ICE when omitting template parameter of a sub-class
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/4868: ICE when omitting template parameter of a sub-class
- From: reichelt at igpm dot rwth-aachen dot de
- Date: 13 Nov 2001 17:29:46 -0000
- Reply-to: reichelt at igpm dot rwth-aachen dot de
>Number: 4868
>Category: c++
>Synopsis: ICE when omitting template parameter of a sub-class
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Tue Nov 13 09:36:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Volker Reichelt
>Release: 2.95.3, 3.0.2, 3.1 (as of 20011023)
>Organization:
>Environment:
i686-pc-linux-gnu, mips-sgi-irix6.5
>Description:
The compiler crashes on the following 3 lines of code:
struct A { template <class T> struct B; };
struct A::B {}; // illegal, A::B is a template
A::B<int> b;
The error message is:
bug.cpp: In instantiation of `A::B<int>':
bug.cpp:3: instantiated from here
bug.cpp:2: Internal error: Segmentation fault
Please submit a full bug report etc.
>How-To-Repeat:
g++ -c <filename>
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: