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

From-SVN: r66154
This commit is contained in:
Mark Mitchell 2003-04-28 06:13:23 +00:00 committed by Mark Mitchell
parent 772f8889ca
commit 9e6aaf5ea5
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
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

View File

@ -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)))))