bug in template function specialization
David Mazieres
dm@reeducation-labor.lcs.mit.edu
Sun Jun 7 14:18:00 GMT 1998
When I try to compile the following program with egcs-2.90.29 980515
(egcs-1.0.3 release) on OpenBSD, it tells me to submit a bug report:
egcs-bug.C:11: Internal compiler error.
egcs-bug.C:11: Please submit a full bug report to `egcs-bugs@cygnus.com'.
So here it is.
Thanks,
David
--
#include <stdlib.h>
template<class T> inline bool
isarray ()
{
return false;
}
template<class T, size_t n> inline bool
isarray<T[n]> ()
{
return true;
}
More information about the Gcc-bugs
mailing list