union bug
batali@cogsci.ucsd.edu
batali@cogsci.ucsd.edu
Fri Mar 10 18:39:00 GMT 2000
gcc told me to report this....
Here is the file tt.cpp:
-----------------------
typedef union {
int slot1;
int slot2;
};
-----------------------
(This error is distilled from a bigger example.)
Obviously the problem is that I forgot to put the name of the typedef,
but, as I said, gcc asked me to report it to you.
Here's what I get from the command:
% gcc -Wall -v --save-temps tt.cpp
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 -Wall -Asystem(unix) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_i386__ tt.cpp tt.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 tt.ii -quiet -dumpbase tt.cc -Wall -version -o tt.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).
tt.cpp:5: Internal compiler error.
tt.cpp:5: Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'.
tt.cpp:5: See <URL: http://egcs.cygnus.com/faq.html#bugreport > for details.
================================================================
here is tt.ii (for what it's worth)
# 1 "tt.cpp"
typedef union {
int slot1;
int slot2;
};
================================================================
John Batali batali@cogsci.ucsd.edu
Department of Cognitive Science, University of California at San Diego
9500 Gilman Drive; La Jolla, CA 92093-0515 (619) 534-7308
http://cogsci.ucsd.edu/~batali/ (619) 299-4403
More information about the Gcc-bugs
mailing list