error.c (dump_function_name): Don't crash if given a friend pseudo-instantiation.
authorMark Mitchell <mark@codesourcery.com>
Wed, 10 Nov 1999 22:31:29 +0000 (22:31 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 10 Nov 1999 22:31:29 +0000 (22:31 +0000)
* error.c (dump_function_name): Don't crash if given a friend
pseudo-instantiation.

From-SVN: r30479

gcc/cp/ChangeLog
gcc/cp/error.c

index 0f4e3f5faf6dd41d07fb381fa1016462d81bd942..c50a175b6f376d4bd9cd11582747d506017a12e5 100644 (file)
@@ -1,3 +1,24 @@
+1999-11-10  Mark Mitchell  <mark@codesourcery.com>
+
+       * error.c (dump_function_name): Don't crash if given a friend
+       pseudo-instantiation.
+
+       * cp-tree.h (build_enumerator): Change prototype.
+       * decl.c (enum_next_value): Remove.
+       (enum_overflow): Likewise.
+       (init_decl_processing): Don't register enum_next_value as a root.
+       (start_enum): Clear TYPE_VALUES for a redefined enum.
+       (finish_enum): Reset the type of enumeration constants.
+       (build_enumerator): Fix indentation.  Don't copy CONST_DECLs when
+       we don't need to.  Maintain the TYPE_VALUES list and look there
+       for the previously defined enumeration constant.  Let enumeration
+       constants have the type of their values until the enumeration type
+       is complete.
+       * parse.y (enumlist_opt, enumlist, enumerator): Don't return a value.
+       (structsp): Adjust.
+       * parse.c: Regenerated.
+       * pt.c (tsubst_enum): Adjust according to build_enumerator changes.
+       
 Wed Nov 10 12:43:21 1999  Philippe De Muyter  <phdm@macqel.be>
                           Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
index ac9427ba9bf7baaa6daf6c8a95d7876c02a3d03b..9151b8c604efc59d2a256bc3503f0a60541540ba 100644 (file)
@@ -1283,6 +1283,7 @@ dump_function_name (t, flags)
     dump_decl (name, flags);
 
   if (DECL_LANG_SPECIFIC (t) && DECL_TEMPLATE_INFO (t)
+      && !DECL_FRIEND_PSEUDO_TEMPLATE_INSTANTIATION (t)
       && (DECL_TEMPLATE_SPECIALIZATION (t) 
          || TREE_CODE (DECL_TI_TEMPLATE (t)) != TEMPLATE_DECL
          || DECL_TEMPLATE_SPECIALIZATION (DECL_TI_TEMPLATE (t))