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/53702] [4.8 Regression] ICE with -Wall and nested functions and unused typedef


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

--- Comment #4 from meadori at gcc dot gnu.org 2012-06-21 20:20:36 UTC ---
Author: meadori
Date: Thu Jun 21 20:20:30 2012
New Revision: 188860

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=188860
Log:
    PR c/53702

    * c-decl.c (c_push_function_context): Restore the behavior to reuse
    the language function allocated for -Wunused-local-typedefs.
    (c_pop_function_context): If necessary, clear the language function
    created in c_push_function_context.  Always clear out the
    x_cur_stmt_list field of the restored language function.

testsuite/
    * gcc.dg/Wunused-local-typedefs.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/Wunused-local-typedefs.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]