public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/9229: [3.4 regression] [New parser] ICE on illegal number of template parameters
@ 2003-01-08 16:06 bangerth
0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-01-08 16:06 UTC (permalink / raw)
To: gcc-gnats
>Number: 9229
>Category: c++
>Synopsis: [3.4 regression] [New parser] ICE on illegal number of template parameters
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Wed Jan 08 08:06:02 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: bangerth@ticam.utexas.edu
>Release: unknown-1.0
>Organization:
>Environment:
3.4 after the new parser merge
>Description:
This illegal code now provokes an ICE:
------------------------------
template <class T> class O {
struct I;
template <class T_>
friend typename O<T_,void>::I f ();
};
template class O<int>;
-------------------------------
With 3.3 I got:
deal.II/base> /home/bangerth/bin/gcc-3.3-pre/bin/c++ -c c.cc
c.cc:5: error: wrong number of template arguments (2, should be 1)
c.cc:1: error: provided for `template<class T> class O'
c.cc:5: error: `I' is not a class or namespace
c.cc:5: error: ISO C++ forbids declaration of `f' with no type
While 3.4 now adds another ICE:
deal.II/base> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c c.cc
c.cc:5: error: wrong number of template arguments (2, should be 1)
c.cc:1: error: provided for `template<class T> class O'
c.cc:5: internal compiler error: tree check: expected class 't', have 'x' (
error_mark) in make_typename_type, at cp/decl.c:5692
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
Since a proper message is given before, this is of low
priority.
W.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c++/9229: [3.4 regression] [New parser] ICE on illegal number of template parameters
@ 2003-01-15 9:28 reichelt
0 siblings, 0 replies; 2+ messages in thread
From: reichelt @ 2003-01-15 9:28 UTC (permalink / raw)
To: bangerth, gcc-bugs, gcc-prs, nobody
Synopsis: [3.4 regression] [New parser] ICE on illegal number of template parameters
State-Changed-From-To: open->closed
State-Changed-By: reichelt
State-Changed-When: Wed Jan 15 01:28:17 2003
State-Changed-Why:
Fixed in gcc 3.4-20030113.
I now get
PR9229.cc:5: error: wrong number of template arguments (2, should be 1)
PR9229.cc:1: error: provided for `template<class T> class O'
PR9229.cc:5: error: expected function-definition
for the provided code snippets.
(Testcase in preparation.)
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9229
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-01-15 9:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-08 16:06 c++/9229: [3.4 regression] [New parser] ICE on illegal number of template parameters bangerth
2003-01-15 9:28 reichelt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).