+2004-09-02 Paul Brook <paul@codesourcery.com>
+
+ * decl2.c (determine_visibility): Only check data visibility
+ for VAR_DECLS.
+
2004-08-31 Mark Mitchell <mark@codesourcery.com>
* cp-tree.h (DECL_CONSTRUCTION_VTABLE_P): New macro.
* decl2.c (determine_visibility): Honor
TARGET_CXX_EXPORT_CLASS_DATA.
- * class.c (key_method): Rename to ...
+ * class.c (key_method): Rename to ...
(determine_key_method): ... this.
(finish_struct_1): Adjust accordingly.
* cp-tree.h (key_method): Declare.
the visibility of their containing class. */
if (class_type)
{
- if (targetm.cxx.export_class_data ()
+ if (TREE_CODE (decl) == VAR_DECL
+ && targetm.cxx.export_class_data ()
&& (DECL_TINFO_P (decl)
|| (DECL_VTABLE_OR_VTT_P (decl)
/* Construction virtual tables are not emitted