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]

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



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


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