decl2.c (comdat_linkage): Don't externalize explicit instantiations.
authorMark Mitchell <mark@codesourcery.com>
Thu, 1 May 2003 15:46:01 +0000 (15:46 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 1 May 2003 15:46:01 +0000 (15:46 +0000)
* decl2.c (comdat_linkage): Don't externalize explicit
instantiations.

From-SVN: r66331

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

index 2f58d2eb650f0f172a8ef23eb5763c04d6f62557..fb18ad0a37a790c41054a768ab92a6011f2fae24 100644 (file)
@@ -1,3 +1,8 @@
+2003-05-01  Mark Mitchell  <mark@codesourcery.com>
+
+       * decl2.c (comdat_linkage): Don't externalize explicit
+       instantiations.
+
 2003-05-01  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
 
        PR c++/10554
index ec5ff717eeaeaf1434d4a71d31ec4c572f6a50e7..00a77dfa30a83c41a0ab3f4e380a1364c92ecb5a 100644 (file)
@@ -1454,7 +1454,7 @@ comdat_linkage (tree decl)
          DECL_COMMON (decl) = 1;
          DECL_INITIAL (decl) = error_mark_node;
        }
-      else
+      else if (!DECL_EXPLICIT_INSTANTIATION (decl))
        {
          /* We can't do anything useful; leave vars for explicit
             instantiation.  */