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

Sergei Murzin <sergey at murzin dot pw> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sergey at murzin dot pw

--- Comment #2 from Sergei Murzin <sergey at murzin dot pw> ---
(In reply to Marek Polacek from comment #1)
> We warn with -Wpedantic and error with -pedantic-errors.

That is warning for using designated initializers pre-C++20. With C++20 above
code compiles with -Wpedantic without error or warning.
The problem above though, is that the deisgnated intializer is successfully
constructing a string using non-existent designator.

Reply via email to