https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63412
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>If there is a strict aliasing issue, shouldn't -Wall be warning about it?
Well sometimes it is hard to detect strict aliasing rules violations.
And yes this is an alias violation as ObjectReference<Array> and
ObjectReference<Object> are two different classes and will be in two different
aliasing sets.