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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[12/13 Regression]          |[12/13 Regression] Warning
                   |Compiling string assignment |for string assignment with
                   |with _GLIBCXX_ASSERTIONS    |_GLIBCXX_ASSERTIONS since
                   |fails since                 |r12-3347-g8af8abfbbace49e6
                   |r12-3347-g8af8abfbbace49e6  |
           Keywords|                            |diagnostic

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to John Buddery from comment #0)
>    g++ -m64 -c -std=gnu++17 -Wall -O3 -Werror -D_GLIBCXX_ASSERTIONS  x.cpp


This is only a warning. It fails because you asked it to, with -Werror.

Reporting that compilation fails when you turn warnings into errors isn't very
interesting, that's the point of -Werror :-)

So the bug here is a bogus warning, not that compilation fails. Summary
adjusted accordingly.

Reply via email to