re PR c/63549 ([4.8/4.9/5] ICE in build_array_ref with invalid code)
authorMarek Polacek <polacek@redhat.com>
Fri, 17 Oct 2014 18:42:27 +0000 (18:42 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 17 Oct 2014 18:42:27 +0000 (18:42 +0000)
commitf406ae1fd66cbef7528139d813049d606973b4d2
treeffce8e64d878ee05289269f4a519e7d104d3fd94
parent92574c7cdbf3f32fdc48897990d63e1dc65d5bbf
re PR c/63549 ([4.8/4.9/5] ICE in build_array_ref with invalid code)

PR c/63549
* c-typeck.c (build_array_ref): Bail if the index in an incomplete
type.

* gcc.dg/pr63549.c: New test.

From-SVN: r216413
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr63549.c [new file with mode: 0644]