From: Benjamin Kosnik Date: Thu, 25 Jun 1998 15:31:54 +0000 (+0000) Subject: decl.c (start_enum): Put local enums on permanant_obstack. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6e687e5ea57ea57a42b761e7fb37499c280bf150;p=gcc.git decl.c (start_enum): Put local enums on permanant_obstack. 8 1998-06-25 Benjamin Kosnik * decl.c (start_enum): Put local enums on permanant_obstack. g++/11580 From-SVN: r20721 --- diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 885acac9e07..b5d8f7b1068 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -11427,8 +11427,13 @@ start_enum (name) register tree enumtype = NULL_TREE; struct binding_level *b = inner_binding_level; + /* We are wasting space here and putting these on the permanant_obstack so + that typeid(local enum) will work correctly. */ +#if 0 if (processing_template_decl && current_function_decl) - end_temporary_allocation (); +#endif + + end_temporary_allocation (); /* If this is the real definition for a previous forward reference, fill in the contents in the same object that used to be the