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]

ICE for egcs-1.1 prerelease


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



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