This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


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

--- Comment #3 from uros at gcc dot gnu.org 2012-02-23 16:34:15 UTC ---
Author: uros
Date: Thu Feb 23 16:34:02 2012
New Revision: 184511

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=184511
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:
    trunk/gcc/testsuite/gcc.dg/noncompile/pr52290.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-decl.c
    trunk/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]