[Bug c++/71446] Incorrect overload resolution when using designated initializers

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Feb 25 20:22:00 GMT 2019


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


More information about the Gcc-bugs mailing list