OSDN Git Service

2007-11-05 H.J. Lu <hongjiu.lu@intel.com>
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Nov 2007 23:11:57 +0000 (23:11 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Nov 2007 23:11:57 +0000 (23:11 +0000)
PR c++/33871
* decl2.c (constrain_visibility): Clear DECL_ONE_ONLY if marked
local.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@129911 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 36b7726..cbd2380 100644 (file)
@@ -1,3 +1,9 @@
+2007-11-05  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR c++/33871
+       * decl2.c (constrain_visibility): Clear DECL_ONE_ONLY if marked
+       local.
+
 2007-11-05  Douglas Gregor  <doug.gregor@gmail.com>
 
        PR c++/33996
index ddc8999..d3ca117 100644 (file)
@@ -1704,6 +1704,7 @@ constrain_visibility (tree decl, int visibility)
       if (!DECL_EXTERN_C_P (decl))
        {
          TREE_PUBLIC (decl) = 0;
+         DECL_ONE_ONLY (decl) = 0;
          DECL_INTERFACE_KNOWN (decl) = 1;
          if (DECL_LANG_SPECIFIC (decl))
            DECL_NOT_REALLY_EXTERN (decl) = 1;