The bootstrap issues with a recent patch of mine led me to run make check-g++-strict-gc, which turned up a GC problem with this code, fixed thus.

Tested x86_64-pc-linux-gnu, applying to trunk.
commit f2f82e0908b807a0d339a00b434913fc0886c0cc
Author: Jason Merrill <ja...@redhat.com>
Date:   Mon Nov 7 09:19:27 2011 -0500

    	PR c++/33255
    	* decl.c (save_function_data): Clear local_typedefs.

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;
 }
 
 

Reply via email to