]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* decl2.c (import_export_decl): Call import_export_class.
authorJason Merrill <jason@yorick.cygnus.com>
Mon, 2 Nov 1998 22:25:05 +0000 (22:25 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 2 Nov 1998 22:25:05 +0000 (17:25 -0500)
From-SVN: r23507

gcc/cp/ChangeLog
gcc/cp/decl2.c

index 03b949a8d8ac2634bae3a9263e1103909d34f136..9c3e7284269b01ac055c94a3a6f55ca449b37995 100644 (file)
@@ -1,3 +1,7 @@
+1998-11-02  Jason Merrill  <jason@yorick.cygnus.com>
+
+       * decl2.c (import_export_decl): Call import_export_class.
+
 1998-10-28  Jason Merrill  <jason@yorick.cygnus.com>
 
        * class.c (finish_struct_1): Don't complain about non-copy
index e9a65a059e11538cf4965d53d31ea08c67ed0e69..baae04b2d401f18cc36b0e1c497025c5fb1419c7 100644 (file)
@@ -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