https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71446

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.7 through 7.x emit:
sorry, unimplemented: non-trivial designated initializers not supported
here (and 4.6 and earlier didn't support C++11 enough to grok it).
That said, you're right, the skipping is implemented regardless of the -std=
mode, though you get -pedantic warnings if you do before -std=c++2a:
warning: C++ designated initializers only available with -std=c++2a or
-std=gnu++2a

Reply via email to