c++/3138: Internal Error 56 on nasty (legal) template stuff

Garth_Dickie@avid.com Garth_Dickie@avid.com
Tue Jun 12 09:36:00 GMT 2001


>Number:         3138
>Category:       c++
>Synopsis:       Internal Error 56 on nasty (legal) template stuff
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 12 09:36:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Garth A. Dickie
>Release:        2.95.3 19991030 (prerelease)
>Organization:
>Environment:
Mandrake 7.2
>Description:
Internal compiler error on legal, nasty, template code.
It appears irreducible from the example below.
>How-To-Repeat:
# 1 "internalCompilerError.cpp"
typedef void ( * F )( );

template< class T >
struct A
{
	static F sF;
};

struct B
{
	template< class T >
	static void f( );
};

template< class T >
F A< T >::sF = B::f< T >;

F gF = A< int >::sF;
>Fix:

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



More information about the Gcc-bugs mailing list