This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
internal error 40
- To: gcc-bugs at gcc dot gnu dot org
- Subject: internal error 40
- From: adonovan at imerge dot co dot uk
- Date: Mon, 27 Mar 2000 16:19:52 +0000
This snippet of code causes my g++ to barf (I've cut it down to the minimum). Full details below. Yes I know it's not legal C++ but it would be if I'd remembered the semicolon after the j! :-)
HTH
alan
int main()
{
typedef unsigned char byte;
int i = j byte *k;
}
% cc -g -Wall -O2 -c interp.cxx
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=91 -D__ELF__ -Dunix -Di386 -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__i386__ -D__linux__ -D__unix -D__i386 -D__linux -Asystem(posix) -D__EXCEPTIONS -D__OPTIMIZE__ -g -Wall -Asystem(unix) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ interp/interp.cxx interp.ii
GNU CPP version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/usr/include/g++-2
/usr/local/include
/usr/i386-redhat-linux/include
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include
/usr/include
End of search list.
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/cc1plus interp.ii -quiet -dumpbase interp.cc -g -O2 -Wall -version -o interp.s
GNU C++ version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) (i386-redhat-linux) compiled by GNU C version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release).
interp/interp.cxx: In function `int main()':
interp/interp.cxx:7: Internal compiler error 40.
interp/interp.cxx:7: Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'.
interp/interp.cxx:7: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for details.
------------------------------------------------------------
Imerge Limited Tel: +44 1223 875265
Harston Mill Fax: +44 1223 875264
Harston
Cambridge CB2 5NH
United Kingdom http://www.imerge.co.uk
------------------------------------------------------------