diff options
author | Richard Guenther <rguenther@suse.de> | 2011-05-11 12:23:12 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2011-05-11 12:23:12 +0000 |
commit | 41a58a92c3be093fd963d1fdea1231631e06fc32 (patch) | |
tree | 4421880e85e5367fb727c8c2d5ff7e080dd0161c /gcc/testsuite | |
parent | e9f8dcf9b3bd2972c947d793443a83a78104ae87 (diff) | |
download | gcc-41a58a92c3be093fd963d1fdea1231631e06fc32.zip gcc-41a58a92c3be093fd963d1fdea1231631e06fc32.tar.gz gcc-41a58a92c3be093fd963d1fdea1231631e06fc32.tar.bz2 |
re PR middle-end/48953 (ICE: verify_gimple failed: type mismatch in array reference with -flto and struct with vararray)
2011-05-11 Richard Guenther <rguenther@suse.de>
PR middle-end/48953
* tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
* gcc.dg/torture/pr48953.c: New testcase.
From-SVN: r173653
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/torture/pr48953.c | 17 |
2 files changed, 22 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index becc978..5cfb9f2 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2011-05-11 Richard Guenther <rguenther@suse.de> + PR middle-end/48953 + * gcc.dg/torture/pr48953.c: New testcase. + +2011-05-11 Richard Guenther <rguenther@suse.de> + PR tree-optimization/18041 * gcc.dg/tree-ssa/forwprop-13.c: New testcase. diff --git a/gcc/testsuite/gcc.dg/torture/pr48953.c b/gcc/testsuite/gcc.dg/torture/pr48953.c new file mode 100644 index 0000000..41a3d7b --- /dev/null +++ b/gcc/testsuite/gcc.dg/torture/pr48953.c @@ -0,0 +1,17 @@ +/* { dg-do run } */ +/* { dg-options "-fno-tree-dce" } */ + +static inline int foo (int n, int k) +{ + struct S + { + int i[n]; + int value; + } s[2]; + return s[k].value = 0; +} + +int main () +{ + return foo (2, 0); +} |