re PR c/69819 (ICE on invalid code on x86_64-linux-gnu in tree check: expected functi...
authorMarek Polacek <polacek@redhat.com>
Wed, 24 Feb 2016 21:47:59 +0000 (21:47 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 24 Feb 2016 21:47:59 +0000 (21:47 +0000)
commit0b05329bbfaade628e97f5d33165f82337865153
tree129d48f696abba50424da8117a9d088ef3d1c3af
parent944e9f5feea2ef45badd508d639f2b5802f3824d
re PR c/69819 (ICE on invalid code on x86_64-linux-gnu in tree check: expected function_type or method_type, have array_type in function_args_iter_init, at tree.h:4536)

PR c/69819
* c-decl.c (finish_decl): Don't update the copy of the type of a
different decl type.

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

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