This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/11665] New: ICE in struct initializer
- From: "jwhite at cse dot unl dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Jul 2003 21:31:19 -0000
- Subject: [Bug c/11665] New: ICE in struct initializer
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11665
Summary: ICE in struct initializer
Product: gcc
Version: 3.3
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jwhite at cse dot unl dot edu
CC: gcc-bugs at gcc dot gnu dot org
int x;
struct gdt
{
unsigned a,b,c,d,e,f;
};
void f()
{
/* workaround,
int* z=&x; replace &x with z
*/
struct gdt gdt_table[2]=
{
{
0,
/* the &x seems to be the problem, without it, no ICE */
( (((unsigned)(&x))<<(24))&(-1<<(8)) ),
},
};
}
/* CODE ENDS */
/*
gcc test2.c
test2.c: In function `f':
test2.c:17: internal compiler error: in copy_constant, at varasm.c:2631
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
gcc -v
Reading specs from
/usr/local/lib/gcc-lib/i386-unknown-freebsd4.7/3.3/specs
Configured with: ./configure --prefix=/usr/local --enable-languages=java
Thread model: posix
gcc version 3.3
/usr/local/gcc34/bin/gcc test2.c
test2.c: In function `f':
test2.c:17: internal compiler error: in copy_constant, at varasm.c:2532
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
/usr/local/gcc34/bin/gcc -v
Reading specs from /usr/local/gcc34/lib/gcc-lib/i386-unknown-
freebsd4.7/3.4/specs
Configured with: ./configure --prefix=/usr/local/gcc34 : (reconfigured)
./configure --prefix=/usr/local/gcc34
Thread model: posix
gcc version 3.4 20030702 (experimental)
*/