https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100653
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Eric Botcazou <ebotca...@gcc.gnu.org>: https://gcc.gnu.org/g:401bd4adcfda9965363b1ac3ba7e1580f15d6883 commit r12-1072-g401bd4adcfda9965363b1ac3ba7e1580f15d6883 Author: Eric Botcazou <ebotca...@adacore.com> Date: Wed May 26 19:12:05 2021 +0200 Warn on type punning that toggles scalar storage order As documented in the manual, we do not support type punning that toggles the scalar storage order, so this adds a warning for the case of unions. gcc/c/ PR c/100653 * c-decl.c (finish_struct): Warn for a union containing an aggregate field with a differing scalar storage order. gcc/testsuite/ * gcc.dg/sso-13.c: New test.