re PR c/70851 (internal compiler error: in create_tmp_var, at gimple-expr.c:473)
authorMarek Polacek <polacek@redhat.com>
Mon, 2 May 2016 11:35:59 +0000 (11:35 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 2 May 2016 11:35:59 +0000 (11:35 +0000)
commit7176a4a096decd4a1930e4bd84f8ba2f05f13f81
tree35a0e8abb5a8e8d2be7b121522b7e42d4882c44f
parentb5a5ade831991092d753d233cb2ac290d2db61cf
re PR c/70851 (internal compiler error: in create_tmp_var, at gimple-expr.c:473)

PR c/70851
* c-decl.c (grokdeclarator): Diagnose when array's size has an
incomplete type.

* gcc.dg/enum-incomplete-3.c: New test.

From-SVN: r235750
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/enum-incomplete-3.c [new file with mode: 0644]