This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

(6/8) ix86-win32 COM tweak


Original submission:

   Linkname: Re: (C++) COM patch -- allow multiple COM base classes
   URL: http://gcc.gnu.org/ml/gcc-patches/1999-06/msg00274.html

Jason's Approval:

   Linkname: Re: (C++) COM patch -- allow multiple COM base classes
   URL: http://gcc.gnu.org/ml/gcc-patches/1999-06/msg00275.html

but never applied.
  
Sat Dec 11 23:23:09 1999  Mumit Khan  <khan@xraylith.wisc.edu>

	* class.c (finish_base_struct): Allow multiple COM base classes
	as well as non-COM bases as long as it's not the leftmost.

Index: class.c
===================================================================
RCS file: /homes/khan/src/CVSROOT/gcc-dev/gcc/cp/class.c,v
retrieving revision 1.1.1.1
diff -u -3 -p -r1.1.1.1 class.c
--- class.c	1999/12/11 03:13:51	1.1.1.1
+++ class.c	1999/12/12 05:22:51
@@ -1569,15 +1569,12 @@ finish_base_struct (t, b)
       if (CLASSTYPE_COM_INTERFACE (basetype))
 	{
 	  CLASSTYPE_COM_INTERFACE (t) = 1;
-	  if (i > 0)
-	    cp_error
-	      ("COM interface type `%T' must be the leftmost base class",
-	       basetype);
 	}
       else if (CLASSTYPE_COM_INTERFACE (t) && i == 0)
 	{
-	  cp_error ("COM interface type `%T' with non-COM base class `%T'",
-		    t, basetype);
+	  cp_error 
+	    ("COM interface type `%T' with non-COM leftmost base class `%T'",
+	     t, basetype);
 	  CLASSTYPE_COM_INTERFACE (t) = 0;
 	}
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]