https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66308
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Only the upcast is really a bug. Downcasting is not a problem here.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66308
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Only the upcast is really a bug. Downcasting is not a problem here.