https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52377
--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> --- (In reply to dmitry.v.rogozhkin from comment #5) > May I have additional information on this bug, please: > 1. What was the patch which fixed the bug? r199455 > 2. The noted behavior to have 0 values for union members with -O: is that > permanent behavior or we can randomly get non-zero values If the member is initialized, we should get the correct value. Otherwise it's undefined behavior. > 3. Was the fix backported to 4.8, if not - why? Doesn't look like it. Probably because it wasn't a regression.