Commit 565603f8 by H.J. Lu Committed by H.J. Lu

re PR c++/33871 (typeinfo name referenced in ... defined in discarded section)

2007-11-05  H.J. Lu  <hongjiu.lu@intel.com>

	PR c++/33871
	* decl2.c (constrain_visibility): Clear DECL_ONE_ONLY if marked
	local.

From-SVN: r129911
parent d03b2e6b
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> 2007-11-05 Douglas Gregor <doug.gregor@gmail.com>
PR c++/33996 PR c++/33996
......
...@@ -1704,6 +1704,7 @@ constrain_visibility (tree decl, int visibility) ...@@ -1704,6 +1704,7 @@ constrain_visibility (tree decl, int visibility)
if (!DECL_EXTERN_C_P (decl)) if (!DECL_EXTERN_C_P (decl))
{ {
TREE_PUBLIC (decl) = 0; TREE_PUBLIC (decl) = 0;
DECL_ONE_ONLY (decl) = 0;
DECL_INTERFACE_KNOWN (decl) = 1; DECL_INTERFACE_KNOWN (decl) = 1;
if (DECL_LANG_SPECIFIC (decl)) if (DECL_LANG_SPECIFIC (decl))
DECL_NOT_REALLY_EXTERN (decl) = 1; DECL_NOT_REALLY_EXTERN (decl) = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment