home *** CD-ROM | disk | FTP | other *** search
- Wed Jun 9 18:30:24 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: gcc-2.95.2/gcc/cp/class.c
- ===================================================================
- RCS file: /homes/khan/src/CVSROOT/gcc-2.95.2/gcc/cp/class.c,v
- retrieving revision 1.5
- diff -u -3 -p -r1.5 class.c
- --- gcc-2.95.2/gcc/cp/class.c 1999/11/05 06:20:01 1.5
- +++ gcc-2.95.2/gcc/cp/class.c 1999/11/05 06:23:32
- @@ -1643,15 +1643,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;
- }
-
-