re PR c/79730 (ICE tree check: expected var_decl, have function_decl in finish_decl...
authorMarek Polacek <polacek@redhat.com>
Wed, 29 Mar 2017 23:40:36 +0000 (23:40 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 29 Mar 2017 23:40:36 +0000 (23:40 +0000)
commit10fa8dfb3a13443006563fd14af64d4751ebb7fb
tree1c069a1e89c0764fd7e7f9da20332dc1192350bd
parentfdc54f39c14aa7fc3820853bf8deee8e02401a55
re PR c/79730 (ICE tree check: expected var_decl, have function_decl in finish_decl, at c/c-decl.c:5063)

PR c/79730
* c-decl.c (finish_decl): Check VAR_P.

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

From-SVN: r246578
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr79730.c [new file with mode: 0644]