From: Mark Mitchell Date: Thu, 1 May 2003 15:46:01 +0000 (+0000) Subject: decl2.c (comdat_linkage): Don't externalize explicit instantiations. X-Git-Tag: releases/gcc-3.4.0~6899 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=49bf4577455b0bb2413fe317c0424aba6f53616d;p=thirdparty%2Fgcc.git decl2.c (comdat_linkage): Don't externalize explicit instantiations. * decl2.c (comdat_linkage): Don't externalize explicit instantiations. From-SVN: r66331 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 2f58d2eb650f..fb18ad0a37a7 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 ec5ff717eeae..00a77dfa30a8 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. */