2012-06-28 Richard Guenther <rguenther@suse.de>
commit2357fda04d05e7b5568ced89a3052c7961c89f77
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 28 Jun 2012 11:45:14 +0000 (28 11:45 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 28 Jun 2012 11:45:14 +0000 (28 11:45 +0000)
tree0feb4042fea4a18558cbd0b1ca50e4ec4759e3c6
parent6788865370228cff7743b43e3a985e6c63104fe7
2012-06-28  Richard Guenther  <rguenther@suse.de>

PR middle-end/53790
* expr.c (expand_expr_real_1): Verify if the type is complete
before inspecting its size.

* gcc.dg/torture/pr53790.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@189045 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr53790.c [new file with mode: 0644]