This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
bug in template function specialization
- To: egcs-bugs at cygnus dot com
- Subject: bug in template function specialization
- From: David Mazieres <dm at reeducation-labor dot lcs dot mit dot edu>
- Date: Sun, 7 Jun 1998 17:18:04 -0400 (EDT)
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;
}