This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/5975: ICE with typedefs and templates
- From: reichelt at igpm dot rwth-aachen dot de
- To: gcc-gnats at gcc dot gnu dot org
- Date: 15 Mar 2002 15:09:52 -0000
- Subject: c++/5975: ICE with typedefs and templates
- Reply-to: reichelt at igpm dot rwth-aachen dot de
>Number: 5975
>Category: c++
>Synopsis: ICE with typedefs and templates
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Fri Mar 15 07:16:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Volker Reichelt
>Release: gcc 3.1 20020311 (prerelease)
>Organization:
>Environment:
mips-sgi-irix6.5, i686-pc-linux-gnu
>Description:
The following line of code causes an ICE:
--------------------snip here-------------
typedef typename X::Y<> y;
--------------------snip here-------------
The error message is
bug.cpp:1: `X' is not a class or namespace
bug.cpp:1: tree check: expected class 't', have 'x' (identifier_node) in
make_typename_type, at cp/decl.c:5669
Please submit a full bug report, [etc.]
This is a regression from gcc 3.0.x.
>How-To-Repeat:
g++ -c bug.cpp
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: