]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* decl2.c: Complete reversion of c++/7754.
authorRichard Henderson <rth@redhat.com>
Mon, 7 Oct 2002 09:54:27 +0000 (02:54 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Mon, 7 Oct 2002 09:54:27 +0000 (02:54 -0700)
From-SVN: r57896

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

index b8009df74958150782be33e4e7aa3dcbb48b4b21..f4738ece154dfb28faf18e4a427dd3fa5168aa9f 100644 (file)
@@ -1,3 +1,7 @@
+2002-10-07  Richard Henderson  <rth@redhat.com>
+
+       * decl2.c: Complete reversion of c++/7754.
+
 2002-10-06  Roger Sayle  <roger@eyesopen.com>
 
        PR optimization/6627
index 43349631b4de6c6431903f1372b6f12b04a87980..0eb47994b20ab07afefe1283ebf588e7fb569377 100644 (file)
@@ -1975,31 +1975,26 @@ finish_anon_union (anon_union_decl)
       return;
     }
 
-  if (!processing_template_decl)
-    {
-      main_decl 
-       = build_anon_union_vars (anon_union_decl,
-                                &DECL_ANON_UNION_ELEMS (anon_union_decl),
-                                static_p, external_p);
-      
-      if (main_decl == NULL_TREE)
-       {
-         warning ("anonymous aggregate with no members");
-         return;
-       }
+  main_decl = build_anon_union_vars (anon_union_decl,
+                                    &DECL_ANON_UNION_ELEMS (anon_union_decl),
+                                    static_p, external_p);
 
-      if (static_p)
-       {
-         make_decl_rtl (main_decl, 0);
-         COPY_DECL_RTL (main_decl, anon_union_decl);
-         expand_anon_union_decl (anon_union_decl, 
-                                 NULL_TREE,
-                                 DECL_ANON_UNION_ELEMS (anon_union_decl));
-         return;
-       }
+  if (main_decl == NULL_TREE)
+    {
+      warning ("anonymous aggregate with no members");
+      return;
     }
 
-  add_decl_stmt (anon_union_decl);
+  if (static_p)
+    {
+      make_decl_rtl (main_decl, 0);
+      COPY_DECL_RTL (main_decl, anon_union_decl);
+      expand_anon_union_decl (anon_union_decl, 
+                             NULL_TREE,
+                             DECL_ANON_UNION_ELEMS (anon_union_decl));
+    }
+  else
+    add_decl_stmt (anon_union_decl);
 }
 
 /* Finish processing a builtin type TYPE.  It's name is NAME,