[Bug c/21213] New: segfault declaring a transparent union
javier dot pello at urjc dot es
gcc-bugzilla@gcc.gnu.org
Mon Apr 25 13:44:00 GMT 2005
Compiling the following piece of code causes gcc 3.4.3 and 3.4.4-20050422 to
segfault
enum some_enum {
enum_a
};
union some_union {
enum some_enum;
} __attribute__((__transparent_union__));
The code is compiled as
gcc -c test.c -o test.o
and gcc complains with
test.c:6: warning: declaration does not declare anything
test.c:7: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Dump of gcc-3.4.3 -v follows:
Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/specs
Configured with: ../gcc-3.4.3/configure --prefix=/usr --libexecdir=/usr/lib
--sharedstatedir=/var/lib --localstatedir=/var/lib --infodir=/usr/share/info
--mandir=/usr/share/man --with-arch=pentium4
Thread model: posix
gcc version 3.4.3
Dump of gcc-3.4.4 -v follows:
Using built-in specs.
Configured with: ../gcc-3.4-20050422/configure --prefix=/usr
Thread model: posix
gcc version 3.4.4 20050422 (prerelease)
--
Summary: segfault declaring a transparent union
Product: gcc
Version: 3.4.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: javier dot pello at urjc dot es
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21213
More information about the Gcc-bugs
mailing list