------- Comment #3 from jason at gcc dot gnu dot org 2010-09-13 14:57 -------
This isn't a bug. We produce a cast here because no field is generated for an
empty base class. From class.c:
/* We do not create a FIELD_DECL for empty base classes because it might
overlap some other field. We want to be able to create CONSTRUCTORs for the
class by iterating over the FIELD_DECLs, and the back end does not handle
overlapping FIELD_DECLs. */
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu dot org
Status|NEW |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19816