]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c/71573 (ICE on invalid C code on x86_64-linux-gnu (tree check: expected functi...
authorMarek Polacek <polacek@redhat.com>
Fri, 29 Jul 2016 17:36:46 +0000 (17:36 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 29 Jul 2016 17:36:46 +0000 (17:36 +0000)
commite00dceafd2de848a7735dbce48922aa2304a0f94
treefeeb7bcc2ca33fc90b3d2193ab87d8641f9730a2
parentefd0786f218626c25adde976a9f83121b0c45342
re PR c/71573 (ICE on invalid C code on x86_64-linux-gnu (tree check: expected function_decl, have var_decl in implicitly_declare))

PR c/71573
* c-decl.c (implicitly_declare): Return decl early not only for
error_mark_nodes, but for anything that is not a FUNCTION_DECL.

* gcc.dg/noncompile/pr71573.c: New test.

From-SVN: r238885
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/noncompile/pr71573.c [new file with mode: 0644]