* decl2.c (grok_x_components): Always call grok_enum_decls.
authorMark Mitchell <mmitchell@usa.net>
Thu, 22 Jan 1998 22:08:11 +0000 (22:08 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 22 Jan 1998 22:08:11 +0000 (17:08 -0500)
From-SVN: r17448

gcc/cp/ChangeLog
gcc/cp/decl2.c

index 611c9f8..2f3c04a 100644 (file)
@@ -1,3 +1,7 @@
+Thu Jan 22 21:30:42 1998  Mark Mitchell  <mmitchell@usa.net>
+
+       * decl2.c (grok_x_components): Always call grok_enum_decls.
+
 Wed Jan 21 10:29:57 1998  Kriang Lerdsuwanakij  <lerdsuwa@scf.usc.edu>
 
        * pt.c (coerce_template_parms): Don't access elements of ARGLIST
index 8c4efc6..12a8474 100644 (file)
@@ -931,10 +931,7 @@ grok_x_components (specs, components)
   else
     {
       t = TREE_TYPE (components);
-      if (TREE_CODE (t) == ENUMERAL_TYPE && TREE_NONLOCAL_FLAG (t))
-       return grok_enum_decls (t, components);
-      else
-       return components;
+      return grok_enum_decls (t, components);
     }
 }