]> 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 16:34:02 +0000 (17:34 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Thu, 23 Feb 2012 16:34:02 +0000 (17:34 +0100)
commit560ad30812da70455b371b0488229beab9ae9d75
tree775525bc6d105a76e8dd7954fe595270b2fc3544
parentf71f1418cf5d50077cba55eaa2abfe843957c78a
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: r184511
gcc/ChangeLog
gcc/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/noncompile/pr52290.c [new file with mode: 0644]