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]

bug in template function specialization


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;
}


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