https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96868
--- Comment #7 from Marek Polacek <mpolacek at gcc dot gnu.org> --- A similar test. I'm not sure how we want -Wm-f-i to behave here. #include <optional> struct A { int a; std::optional<int> b; }; int main() { auto x = A { .a = 123 // warns }; }