aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorBenjamin Kosnik <bkoz@gcc.gnu.org>1998-06-25 15:31:54 +0000
committerBenjamin Kosnik <bkoz@gcc.gnu.org>1998-06-25 15:31:54 +0000
commit6e687e5ea57ea57a42b761e7fb37499c280bf150 (patch)
tree27c55b1e9b9307f65ee4db741fa7ea0e6b8218b2 /gcc
parent501ba25a99c0f804dd06fbe51f17ecebf43edf26 (diff)
downloadgcc-6e687e5ea57ea57a42b761e7fb37499c280bf150.zip
gcc-6e687e5ea57ea57a42b761e7fb37499c280bf150.tar.gz
gcc-6e687e5ea57ea57a42b761e7fb37499c280bf150.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/decl.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 885acac..b5d8f7b 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