https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90475
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2019-05-14 00:00:00 |2021-7-28 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- clang gives a good error message: <source>:3:25: error: field designator 'k' does not refer to any field in type 'X' X f() { return {.i=42, .k=17}; } ^ 1 error generated.