c++/10617: [3.3 regression] ICE in poplevel at cp/decl.c:1296 when defining a function with invalid return type

giovannibajo@libero.it giovannibajo@libero.it
Sun May 4 09:56:00 GMT 2003


>Number:         10617
>Category:       c++
>Synopsis:       [3.3 regression] ICE in poplevel at cp/decl.c:1296 when defining a function with invalid return type
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Sun May 04 09:56:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Giovanni Bajo
>Release:        3.3 CVS 20030503
>Organization:
>Environment:
i686-pc-cygwin
>Description:
Regression found while playing with c++/10615:

--------------------------------------
template <class T>
struct A
{
};


template <class T> 
A<T>::k func1(); 
--------------------------------------
pr10615.cpp:8: error: syntax error before `(' token
pr10615.cpp:8: internal compiler error: in poplevel, at cp/decl.c:1296
Please submit a full bug report,

It's fixed in 3.4, but it's a 3.3 regression wrt to 2.95 which was not ICE-ing.
>How-To-Repeat:
Compile the above code.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list