* decl.c (maybe_commonize_var): Fix thinko in last patch.
From-SVN: r66154
This commit is contained in:
parent
772f8889ca
commit
9e6aaf5ea5
@ -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
|
||||
|
@ -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)))))
|
||||
|
Loading…
Reference in New Issue
Block a user