This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/53702] [4.8 Regression] ICE with -Wall and nested functions and unused typedef
- From: "meadori at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 21 Jun 2012 20:20:36 +0000
- Subject: [Bug c/53702] [4.8 Regression] ICE with -Wall and nested functions and unused typedef
- Auto-submitted: auto-generated
- References: <bug-53702-4@http.gcc.gnu.org/bugzilla/>
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