ICE size_binop, at fold-const.c:1914 with gcc 3.0 i686-pc-linux-gnu
John David Anglin
dave@hiauly1.hia.nrc.ca
Fri Aug 10 18:37:00 GMT 2001
In looking at the failure of gcc.c-torture/compile/20010605-1.c on the
PA, I wondered if a similar failure would occur using a `block' argument:
# 1 "/xxx/gnu/gcc-3.1/gcc/testsuite/gcc.c-torture/compile/20010810-1.c"
int
main (int argc, char **argv)
{
int size = 10;
typedef struct {
char val[size];
} block;
int retframe_block (b)
block b;
{
return sizeof (b);
}
return 0;
}
This results in the following ICE on i686 linux:
dave@hiamlx:~/gcc_test > gcc -S xxx.i
/xxx/gnu/gcc-3.1/gcc/testsuite/gcc.c-torture/compile/20010810-1.c: In function `retframe_block':
/xxx/gnu/gcc-3.1/gcc/testsuite/gcc.c-torture/compile/20010810-1.c:13: Internal compiler error in size_binop, at fold-const.c:1914
Does the test look valid?
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
More information about the Gcc-bugs
mailing list