[Bug c/40204] New: segfault with bitfields in structs
gcc-bugzilla at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue May 19 22:16:00 GMT 2009
Compiling the following (nonsense but valid) code triggers an internal
compiler error.
Environment:
System: Linux thanatos 2.6.26-2-686-bigmem #1 SMP Thu Mar 26 02:03:34 UTC 2009
i686 GNU/Linux
How-To-Repeat:
Compile the following:
-- snip --
struct s {
unsigned int a : 4;
unsigned int b : 28;
};
void f()
{
char c;
struct s s;
s.a = (c >> 4) & ~(1<<4);
}
-- snip --
$ gcc -Wall -c bug.c
gcc: Internal error: Segmentation fault (program cc1)
Please submit a full bug report.
See <file:///usr/share/doc/gcc-4.3/README.Bugs> for instructions.
------- Comment #1 from michael at walle dot cc 2009-05-19 22:16 -------
Fix:
not known
--
Summary: segfault with bitfields in structs
Product: gcc
Version: 3.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: michael at walle dot cc
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40204
More information about the Gcc-bugs
mailing list