https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55227
--- Comment #11 from Will Wray <wjwray at gmail dot com> --- Created attachment 51737 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51737&action=edit Proposed patch Nov 4 Sent to gcc-patches for review https://gcc.gnu.org/pipermail/gcc-patches/2021-November/583379.html This patch aims to fix PR 55227; two underlying bugs that have caused: (1) Rejection of valid designated initialization of char array fields by string literals (a) when enclosed in optional braces or (b) unbraced when the string literal is shorter than the target char array field. (2) Acceptance of an invalid designator appearing within the braces of a braced string literal, in which case the 'designator' was entirely ignored and the string literal treated as a positional initializer.