]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c/52290 (internal compiler error: tree check: expected function_decl, have...
authorUros Bizjak <ubizjak@gmail.com>
Thu, 23 Feb 2012 18:01:45 +0000 (19:01 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Thu, 23 Feb 2012 18:01:45 +0000 (19:01 +0100)
commit358b15989ab2180313744f0a497745e45b804336
tree4f755f9baf57a01f2f2222d0ccc9436374f33291
parent56e4d47ba64e0a48248c4e88135d6924923f4f1f
re PR c/52290 (internal compiler error: tree check: expected function_decl, have var_decl in start_function, at c-decl.c:7712)

PR c/52290
* c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.

testsuite/ChangeLog:

PR c/52290
* gcc.dg/noncompile/pr52290.c: New test.

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