[Bug c/63549] [4.8/4.9/5] ICE in build_array_ref with invalid code
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Oct 17 18:43:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63549
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Fri Oct 17 18:42:27 2014
New Revision: 216413
URL: https://gcc.gnu.org/viewcvs?rev=216413&root=gcc&view=rev
Log:
PR c/63549
* c-typeck.c (build_array_ref): Bail if the index in an incomplete
type.
* gcc.dg/pr63549.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/pr63549.c
Modified:
trunk/gcc/c/ChangeLog
trunk/gcc/c/c-typeck.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list