re PR c/53702 (ICE with -Wall and nested functions and unused typedef)
authorMeador Inge <meadori@codesourcery.com>
Thu, 21 Jun 2012 20:20:30 +0000 (20:20 +0000)
committerMeador Inge <meadori@gcc.gnu.org>
Thu, 21 Jun 2012 20:20:30 +0000 (20:20 +0000)
commitb6fbbea3ca4892390b643d3c2c1bf44a1a428c88
tree0c88a3c22f7f5ed4598f0e757beea52db59e9943
parent0619103bb2ec9b0c23df7b8d9aab613459090b16
re PR c/53702 (ICE with -Wall and nested functions and unused typedef)

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.

From-SVN: r188860
gcc/ChangeLog
gcc/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wunused-local-typedefs.c [new file with mode: 0644]