]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
decl.c (cp_finish_decl): When bailing on a comdat variable, also unset DECL_NOT_REALL...
authorJason Merrill <jason@rhino.cygnus.com>
Sun, 25 Jan 1998 17:14:55 +0000 (17:14 +0000)
committerJeff Law <law@gcc.gnu.org>
Sun, 25 Jan 1998 17:14:55 +0000 (10:14 -0700)
        * decl.c (cp_finish_decl): When bailing on a comdat variable, also
        unset DECL_NOT_REALLY_EXTERN.

From-SVN: r17480

gcc/cp/ChangeLog
gcc/cp/decl.c

index 7f0cc234c903074e801c862061a32b280d06bcc3..d864a63b3148d34e99afc9fb2282723ed4785182 100644 (file)
@@ -1,3 +1,8 @@
+Sun Jan 25 13:20:00 1998  Jason Merrill  <jason@rhino.cygnus.com>
+
+       * decl.c (cp_finish_decl): When bailing on a comdat variable, also
+       unset DECL_NOT_REALLY_EXTERN.
+
 Sat Dec 20 13:00:30 1997  Jason Merrill  <jason@yorick.cygnus.com>
 
        * pt.c (instantiate_decl): Defer all templates but inline functions.
index 193a6fd748639a495331cd14228595fb3cfef5ec..fad7cfa5e8aebea2f20f9507fd201169ead49c12 100644 (file)
@@ -6737,9 +6737,12 @@ cp_finish_decl (decl, init, asmspec_tree, need_pop, flags)
              if (flag_weak)
                make_decl_one_only (decl);
              else
-               /* we can't do anything useful; leave vars for explicit
-                   instantiation.  */
-               DECL_EXTERNAL (decl) = 1;
+               {
+                 /* we can't do anything useful; leave vars for explicit
+                    instantiation.  */
+                 DECL_EXTERNAL (decl) = 1;
+                 DECL_NOT_REALLY_EXTERN (decl) = 0;
+               }
            }
        }