[Bug d/92309] Assignment to anonymous union member corrupts sibling members in struct
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Mar 16 23:24:23 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92309
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Iain Buclaw <ibuclaw@gcc.gnu.org>:
https://gcc.gnu.org/g:2691ffe6dbaffb704593dd6220178c28848b3855
commit r10-7201-g2691ffe6dbaffb704593dd6220178c28848b3855
Author: Iain Buclaw <ibuclaw@gdcproject.org>
Date: Mon Mar 16 23:53:20 2020 +0100
d: Fix assignment to anonymous union member corrupts sibling members in
struct
gcc/d/ChangeLog:
PR d/92309
* types.cc (fixup_anonymous_offset): Don't set DECL_FIELD_OFFSET on
anonymous fields.
gcc/testsuite/ChangeLog:
PR d/92309
* gdc.dg/pr92309.d: New test.
More information about the Gcc-bugs
mailing list