diff options
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/decl2.c | 2 |
2 files changed, 6 insertions, 1 deletions
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 <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 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. */ |