Commit 6e687e5e by Benjamin Kosnik

decl.c (start_enum): Put local enums on permanant_obstack.

8
1998-06-25  Benjamin Kosnik  <bkoz@lisa.cygnus.com>
	* decl.c (start_enum): Put local enums on permanant_obstack.
g++/11580

From-SVN: r20721
parent 501ba25a
...@@ -11427,8 +11427,13 @@ start_enum (name) ...@@ -11427,8 +11427,13 @@ start_enum (name)
register tree enumtype = NULL_TREE; register tree enumtype = NULL_TREE;
struct binding_level *b = inner_binding_level; 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) 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, /* If this is the real definition for a previous forward reference,
fill in the contents in the same object that used to be the fill in the contents in the same object that used to be the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment