From 49bf4577455b0bb2413fe317c0424aba6f53616d Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Thu, 1 May 2003 15:46:01 +0000 Subject: [PATCH] decl2.c (comdat_linkage): Don't externalize explicit instantiations. * decl2.c (comdat_linkage): Don't externalize explicit instantiations. From-SVN: r66331 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/decl2.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 2f58d2eb650..fb18ad0a37a 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2003-05-01 Mark Mitchell + + * decl2.c (comdat_linkage): Don't externalize explicit + instantiations. + 2003-05-01 Kriang Lerdsuwanakij PR c++/10554 diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index ec5ff717eea..00a77dfa30a 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. */ -- 2.30.2