[Bug c/52290] [4.4/4.5/4.6/4.7 Regression] internal compiler error: tree check: expected function_decl, have var_decl in start_function, at c-decl.c:7712

uros at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Feb 23 17:43:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52290

--- Comment #4 from uros at gcc dot gnu.org 2012-02-23 17:38:20 UTC ---
Author: uros
Date: Thu Feb 23 17:38:13 2012
New Revision: 184514

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=184514
Log:
    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.


Added:
    branches/gcc-4_6-branch/gcc/testsuite/gcc.dg/noncompile/pr52290.c
      - copied unchanged from r184511,
trunk/gcc/testsuite/gcc.dg/noncompile/pr52290.c
Modified:
    branches/gcc-4_6-branch/gcc/ChangeLog
    branches/gcc-4_6-branch/gcc/c-decl.c
    branches/gcc-4_6-branch/gcc/testsuite/ChangeLog



More information about the Gcc-bugs mailing list