home *** CD-ROM | disk | FTP | other *** search
/ Programming Win32 Under the API / ProgrammingWin32UnderTheApiPatVillani.iso / patches / gcc-2_95_2-x86-win32-patches.zi / gcc-2.95.2-patches / broken-down / gcc-2.95.2-c++-anon-struct2.diff < prev    next >
Encoding:
Text File  |  1999-11-08  |  772 b   |  21 lines

  1. 1999-05-20  Jason Merrill  <jason@yorick.cygnus.com>
  2.  
  3.     * class.c (finish_struct_1): Still check for ANON_AGGR_TYPE_P.
  4.  
  5. Index: gcc-2.95.2/gcc/cp/class.c
  6. ===================================================================
  7. RCS file: /homes/khan/src/CVSROOT/gcc-2.95.2/gcc/cp/class.c,v
  8. retrieving revision 1.4
  9. diff -u -3 -p -r1.4 class.c
  10. --- gcc-2.95.2/gcc/cp/class.c    1999/11/05 06:17:36    1.4
  11. +++ gcc-2.95.2/gcc/cp/class.c    1999/11/05 06:18:30
  12. @@ -3519,7 +3519,7 @@ finish_struct_1 (t, warn_anon)
  13.        while (TREE_CODE (type) == ARRAY_TYPE)
  14.          type = TREE_TYPE (type);
  15.  
  16. -          if (CLASS_TYPE_P (type))
  17. +       if (CLASS_TYPE_P (type) && ! ANON_AGGR_TYPE_P (type))
  18.          {
  19.            /* Never let anything with uninheritable virtuals
  20.           make it through without complaint.  */
  21.