This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
egcs-2.91.07: Internal compiler error
- To: egcs-bugss <egcs-bugs at cygnus dot com>
- Subject: egcs-2.91.07: Internal compiler error
- From: Joseph Heled <pepe at iconz dot co dot nz>
- Date: Wed, 15 Apr 1998 07:07:57 +1200
uname -a: SunOS zeal 5.5 Generic sun4u sparc SUNW,Ultra-1
***** Program source:
template <class ARRY>
inline unsigned int asize(ARRY &a)
{
return sizeof(a) / sizeof(a[0]);
}
int f(unsigned int n) {
int x[n];
asize(x);
};
***** Compilation:
Reading specs from
/home/joseph/egcs-1/lib/gcc-lib/sparc-sun-solaris2.5/egcs-2.91.07/specs
gcc version egcs-gmake[1]: Leaving directory `/export/home/joseph/egbugs'
ib/gcc-lib/sparc-sun-solaris2.5/egcs-2.91.07/cpp -lang-c++ -v -undef
-D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=91 -Dsparc -Dsun -Dunix
-D__svr4__ -D__SVR4 -D__sparc__ -D__sun__ -D__unix__ -D__svr4__ -D__SVR4
-D__sparc -D__sun -D__unix -Asystem(unix) -Asystem(svr4) -D__EXCEPTIONS
-D__GCC_NEW_VARARGS__ -Acpu(sparc) -Amachine(sparc) b21.cc /var/tmp/cca00166.ii
GNU CPP version egcs-2.91.07 980205 (gcc-2.8.0 release) (sparc)
#include "..." search starts here:
#include <...> search starts here:
/home/joseph/egcs-1/include/g++
/usr/local/include
/home/joseph/egcs-1/sparc-sun-solaris2.5/include
/home/joseph/egcs-1/lib/gcc-lib/sparc-sun-solaris2.5/egcs-2.91.07/include
/usr/include
End of search list.
/home/joseph/egcs-1/lib/gcc-lib/sparc-sun-solaris2.5/egcs-2.91.07/cc1plus
/var/tmp/cca00166.ii -quiet -dumpbase b21.cc -version -o /var/tmp/cca00166.s
GNU C++ version egcs-2.91.07 980205 (gcc-2.8.0 release) (sparc-sun-solaris2.5)
compiled by GNU C version egcs-2.91.02 971216 (gcc-2.8.0).
b21.cc: In function `unsigned int asize<int[((n - 1) + 1)]>(int (&)[((n - 1) +
1)])':
b21.cc:4: Internal compiler error.
b21.cc:4: Please submit a full bug report to `egcs-bugs@cygnus.com'.
gmake[1]: *** [b21] Error 1