c++/2747: g++ crashes on illegal code template<...> typename dd;

lachaume@gagax6.obs.ujf-grenoble.fr lachaume@gagax6.obs.ujf-grenoble.fr
Sat May 5 08:36:00 GMT 2001


>Number:         2747
>Category:       c++
>Synopsis:       g++ crashes on illegal code template<...> typename dd;
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Sat May 05 08:36:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     lachaume@gagax6.obs.ujf-grenoble.fr
>Release:        latest v3 snapshot (5th of may)
>Organization:
>Environment:
x86 GNU/Linux
>Description:
The incorrect on-line program below make gcc crash
template<class C> typename C::c;

(compiled either with -W -all -ansi -O2 -pedantic or without
option)

Happens with different versions:
-- latest v3 snapshot 
http://www.codesourcery.com/gcc-compile.shtml
5th of May
-- 2.95 on Solaris
clipper ~ $ g++ --version
gcc-2.95
clipper ~ $ uname -a
SunOS clipper 5.7 Generic_106541-12 sun4u sparc SUNW,Ultra-250
-- 2.95.3 on linux
gaglin1:~ $ g++ --version
2.95.3
gaglin1:~ $ uname -a
Linux gaglin1 2.4.0 #2 jeu fév 8 07:42:21 CET 2001 i686 unknown
>How-To-Repeat:
Adding an colon after a typename specification in a template
function/class.
>Fix:

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



More information about the Gcc-prs mailing list