This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
ICE size_binop, at fold-const.c:1914 with gcc 3.0 i686-pc-linux-gnu
- To: gcc-bugs at gcc dot gnu dot org
- Subject: ICE size_binop, at fold-const.c:1914 with gcc 3.0 i686-pc-linux-gnu
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Date: Fri, 10 Aug 2001 21:37:20 -0400 (EDT)
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)