diff options
author | Jason Merrill <jason@redhat.com> | 2011-11-07 12:51:24 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2011-11-07 12:51:24 -0500 |
commit | 4c627087f512221c3831f5a9a7af42c453f2cc57 (patch) | |
tree | 96fc5bf67e4c24b757329a33cfa6781be753da63 /gcc | |
parent | b12e4c429258129df86a23dbc1143f0e48f6ba53 (diff) | |
download | gcc-4c627087f512221c3831f5a9a7af42c453f2cc57.zip gcc-4c627087f512221c3831f5a9a7af42c453f2cc57.tar.gz gcc-4c627087f512221c3831f5a9a7af42c453f2cc57.tar.bz2 |
re PR c++/33255 (A warning for "unused" typedefs?)
PR c++/33255
* decl.c (save_function_data): Clear local_typedefs.
From-SVN: r181100
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/cp/decl.c | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 66b4e51..2199d83 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,8 @@ 2011-11-07 Jason Merrill <jason@redhat.com> + PR c++/33255 + * decl.c (save_function_data): Clear local_typedefs. + * decl.c (cp_finish_decl): Only make_tree_vector if we're calling check_initializer. diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 3b283d8..63da51d 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -13021,6 +13021,7 @@ save_function_data (tree decl) f->base.x_stmt_tree.x_cur_stmt_list = NULL; f->bindings = NULL; f->x_local_names = NULL; + f->base.local_typedefs = NULL; } |