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++/10310: [3.4 regression] [parser] ICE on illegal use of template keyword


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


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