From: Jason Merrill Date: Mon, 2 Nov 1998 22:25:05 +0000 (+0000) Subject: * decl2.c (import_export_decl): Call import_export_class. X-Git-Tag: prereleases/egcs-1.1.1-prerelease-2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=035add6ca49710d0e17b81f8bcf4dff8c6215a83;p=thirdparty%2Fgcc.git * decl2.c (import_export_decl): Call import_export_class. From-SVN: r23507 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 03b949a8d8ac..9c3e7284269b 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +1998-11-02 Jason Merrill + + * decl2.c (import_export_decl): Call import_export_class. + 1998-10-28 Jason Merrill * class.c (finish_struct_1): Don't complain about non-copy diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index e9a65a059e11..baae04b2d401 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -2824,6 +2824,7 @@ import_export_decl (decl) else if (DECL_FUNCTION_MEMBER_P (decl)) { tree ctype = DECL_CLASS_CONTEXT (decl); + import_export_class (ctype); if (CLASSTYPE_INTERFACE_KNOWN (ctype) && (! DECL_ARTIFICIAL (decl) || DECL_VINDEX (decl))) { @@ -2838,6 +2839,10 @@ import_export_decl (decl) else if (DECL_ARTIFICIAL (decl) && DECL_MUTABLE_P (decl)) { tree ctype = TREE_TYPE (DECL_NAME (decl)); + + if (IS_AGGR_TYPE (ctype)) + import_export_class (ctype); + if (IS_AGGR_TYPE (ctype) && CLASSTYPE_INTERFACE_KNOWN (ctype) && TYPE_VIRTUAL_P (ctype) /* If the type is a cv-qualified variant of a type, then we