980308 Interal Compiler Error

Phil tmwg@inxservices.com
Wed Mar 11 15:15:00 GMT 1998


This is the source. The .ii is attached. It was compiled with:

g++ -v -march=i586 -malign-double -O7 -g -fno-omit-frame-pointer -D_GNU_SOURCE
-Wall -w -fvtable-thunks -fhandle-signatures -fstrict-prototypes
-foperator-names -fno-rtti -fno-exceptions -fno-keep-static-consts -Winline
-Dwx_xt -DDEBUG=0 -DCPU=i386 --save-temps  -c t.cc

//////////////////////////
#include <cctype>
#include <time.h>

void f() {
	char buffer[32];
	tm entered;
	bool is_valid;

	if ((is_valid = isdigit(buffer[0]))) {
		entered->tm_mon = int(buffer[0] - '0');
	}
}
/////////////////////////

which became:

Reading specs from /usr/lib/gcc/i586-unknown-linux-gnu/2.91.13/specs
gcc version 2.91.13 egcs-980308 (gcc-2.8.0 release)
 /usr/lib/gcc/i586-unknown-linux-gnu/2.91.13/cpp -lang-c++ -v -undef
 -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=91 -D__ELF__ -Dunix
 -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem(posix)
 -D__OPTIMIZE__ -g -Wall -Winline -w -Di386 -Di586 -Asystem(unix) -Acpu(i386)
 -Amachine(i386) -D__i386__ -D__i586__ -Asystem(unix) -Acpu(i386)
 -Amachine(i386) -D_GNU_SOURCE -Dwx_xt -DDEBUG=0 -DCPU=i386 t.cc t.ii
GNU CPP version 2.91.13 egcs-980308 (gcc-2.8.0 release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/c++
 /usr/local/include
 /usr/lib/gcc/i586-unknown-linux-gnu/2.91.13/include
 /usr/include
End of search list.
 /usr/lib/gcc/i586-unknown-linux-gnu/2.91.13/cc1plus t.ii -quiet -dumpbase t.cc
 -march=i586 -malign-double -g -O7 -Wall -Winline -w -version
 -fno-omit-frame-pointer -fvtable-thunks -fhandle-signatures
 -fstrict-prototypes -foperator-names -fno-rtti -fno-exceptions
 -fno-keep-static-consts -o t.s
GNU C++ version 2.91.13 egcs-980308 (gcc-2.8.0 release) (i586-unknown-linux-gnu)
compiled by GNU C version 2.91.13 egcs-980308 (gcc-2.8.0 release).
t.cc: In function `void f()':
t.cc:10: Internal compiler error.
t.cc:10: Please submit a full bug report to `egcs-bugs@cygnus.com'.


More information about the Gcc-bugs mailing list