aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2003-05-01 15:46:01 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2003-05-01 15:46:01 +0000
commit49bf4577455b0bb2413fe317c0424aba6f53616d (patch)
tree4422957c973aa9a43dc16c986ab9ddc174907bf7 /gcc/cp
parent1b293905a3c4ff8fdca6b25bcbe7a60b9d50d7bf (diff)
downloadgcc-49bf4577455b0bb2413fe317c0424aba6f53616d.zip
gcc-49bf4577455b0bb2413fe317c0424aba6f53616d.tar.gz
gcc-49bf4577455b0bb2413fe317c0424aba6f53616d.tar.bz2
decl2.c (comdat_linkage): Don't externalize explicit instantiations.
* decl2.c (comdat_linkage): Don't externalize explicit instantiations. From-SVN: r66331
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/decl2.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 2f58d2e..fb18ad0 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c
index ec5ff71..00a77df 100644
--- a/gcc/cp/decl2.c
+++ b/gcc/cp/decl2.c
@@ -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. */