home *** CD-ROM | disk | FTP | other *** search
- 1999-05-20 Jason Merrill <jason@yorick.cygnus.com>
-
- * class.c (finish_struct_1): Still check for ANON_AGGR_TYPE_P.
-
- 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.4
- diff -u -3 -p -r1.4 class.c
- --- gcc-2.95.2/gcc/cp/class.c 1999/11/05 06:17:36 1.4
- +++ gcc-2.95.2/gcc/cp/class.c 1999/11/05 06:18:30
- @@ -3519,7 +3519,7 @@ finish_struct_1 (t, warn_anon)
- while (TREE_CODE (type) == ARRAY_TYPE)
- type = TREE_TYPE (type);
-
- - if (CLASS_TYPE_P (type))
- + if (CLASS_TYPE_P (type) && ! ANON_AGGR_TYPE_P (type))
- {
- /* Never let anything with uninheritable virtuals
- make it through without complaint. */
-