https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106150
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #4) > Let me also file the other bug about the deconstructor for anonymous unions > since that is a different issue. Actually I take that back, the anonymous union case for the deconstructor is not invalid in the end; I just misunderstood. Anyways the reduced testcase shows the problem even without the deconstructor.