ICE for egcs-1.1 prerelease

Ellak Somfai ellak@ginevra.physics.lsa.umich.edu
Mon Aug 31 21:38:00 GMT 1998


Hi,

the following code produces internal compiler error:

-------- bug.cc

template<typename T> void template_fn (T);
template<typename T> void callme ( void (*)(T) );

int main()
{
	callme( template_fn<double> );
}

--------

$ g++ bug.cc
bug.cc: In function `int main()':
bug.cc:6: Internal compiler error 980715.
bug.cc:6: Please submit a full bug report to `egcs-bugs@cygnus.com'.

$ g++ --version
egcs-2.91.56

--------

Both egcs-1.1 prerelease and egcs-19980816 have this error. Slight changes
of the code (e.g. putting a namespace around the templates) alters the
number of the error (980715, 373, nothing,...)

Maybe this report is related:
	http://www.cygnus.com/ml/egcs-bugs/1998-Aug/0214.html

Thanks!

--Ellak Somfai, ellak@umich.edu




More information about the Gcc-bugs mailing list