This is the mail archive of the gcc-bugs@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++/4868: ICE when omitting template parameter of a sub-class



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


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