https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105651
Jonny Grant <jg at jguk dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jg at jguk dot org --- Comment #24 from Jonny Grant <jg at jguk dot org> --- Hi, Glad it is fixed in trunk. I saw this fail in 12.2 - test case below. #include <string> typedef struct a_bc { std::string a; std::string b; } a_t; void f() { a_t c; c.a = " sdfsdf fsdfsdf fdfsfdsdf "; // seems to need this long string to reproduce, down to 8 bytes it didn't c.b = "E"; }