g++-2.95.2 ICE in `expand_expr'

Ulf Larsson ulf@sm.luth.se
Tue Mar 14 12:32:00 GMT 2000


I made a typo which generated a ICE on freebsd using g++-2.95.2. gcc
accept the same code.


#include <sys/param.h>

void f()
  int size = ntohl (size);

g++ --save-temps --verbose -c ice.cc
Reading specs from
gcc version 2.95.2 19991024 (release)
 /usr/tmp/ulf/lib/gcc-lib/i386-unknown-freebsdelf/2.95.2/cpp -lang-c++
-v -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -Di386
-Dunix -D__ELF__ -D__FreeBSD__ -D__i386__ -D__unix__ -D__ELF__
-D__FreeBSD__ -D__i386 -D__unix -Asystem(unix) -Asystem(FreeBSD)
-Acpu(i386) -Amachine(i386) -D__EXCEPTIONS -Acpu(i386) -Amachine(i386)
-Di386 -D__i386 -D__i386__ ice.cc ice.ii
GNU CPP version 2.95.2 19991024 (release) (i386 FreeBSD/ELF)
#include "..." search starts here:
#include <...> search starts here:


End of search list.
The following default directories have been omitted from the search
End of omitted list.
 /usr/tmp/ulf/lib/gcc-lib/i386-unknown-freebsdelf/2.95.2/cc1plus ice.ii
-quiet -dumpbase ice.cc -version -o ice.s
GNU C++ version 2.95.2 19991024 (release) (i386-unknown-freebsdelf)
compiled by GNU C version
ice.cc: In function `void f()':
ice.cc:5: Internal compiler error in `expand_expr', at expr.c:5750
Please submit a full bug report.
See <URL: http://www.gnu.org/software/gcc/faq.html#bugreport > for

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ice.ii.gz
Type: application/x-gzip
Size: 1585 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20000314/7b3a2b64/attachment.bin>

More information about the Gcc-bugs mailing list