http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60201
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- > P& Subclass = static_cast<P&>( *this ); Is this valid as *this at this point is just a Baseclass type (and does not have a Subclass type.