This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/10310: [3.4 regression] [parser] ICE on illegal use of template keyword
- From: reichelt at igpm dot rwth-aachen dot de
- To: gcc-gnats at gcc dot gnu dot org
- Date: 4 Apr 2003 14:57:09 -0000
- Subject: c++/10310: [3.4 regression] [parser] ICE on illegal use of template keyword
- Reply-to: reichelt at igpm dot rwth-aachen dot de
>Number: 10310
>Category: c++
>Synopsis: [3.4 regression] [parser] ICE on illegal use of template keyword
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Fri Apr 04 15:06:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Volker Reichelt
>Release: gcc 3.4 20030402
>Organization:
>Environment:
i686-pc-linux-gnu
>Description:
Compiling the following line of code with mainline g++ I get an ICE
---------------------snip here-----------------
template void operator<<(int, foo<int>);
---------------------snip here-----------------
bug.cpp:1: error: declaration of `operator<<' as non-function
bug.cpp:1: internal compiler error: tree check: expected class 'd', have 't' (
void_type) in do_decl_instantiation, at cp/pt.c:10324
Please submit a full bug report, [etc.]
So it's actually an error recovery problem, but nevertheless
a regression, since I don't get the ICE with the 3.2 or 3.3 branch.
(BTW, all compilers were configured with --enable-checking)
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: