Commit 9e6aaf5e by Mark Mitchell Committed by Mark Mitchell

* decl.c (maybe_commonize_var): Fix thinko in last patch.

From-SVN: r66154
parent 772f8889
2003-04-27 Mark Mitchell <mark@codesourcery.com>
* decl.c (maybe_commonize_var): Fix thinko in last patch.
2003-04-27 Mark Mitchell <mark@codesourcery.com>
PR c++/10506
* method.c (use_thunk): Decrement immediate_size_expand.
......
......@@ -7341,7 +7341,7 @@ maybe_commonize_var (tree decl)
/* Unfortunately, import_export_decl has not always been called
before the function is processed, so we cannot simply check
DECL_COMDAT. */
&& (DECL_COMDAT (decl)
&& (DECL_COMDAT (DECL_CONTEXT (decl))
|| ((DECL_DECLARED_INLINE_P (DECL_CONTEXT (decl))
|| DECL_TEMPLATE_INSTANTIATION (DECL_CONTEXT (decl)))
&& TREE_PUBLIC (DECL_CONTEXT (decl)))))
......
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