This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

ICE size_binop, at fold-const.c:1914 with gcc 3.0 i686-pc-linux-gnu


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]