[Bug tree-optimization/105545] [12/13 Regression] Warning for string assignment with _GLIBCXX_ASSERTIONS since r12-3347-g8af8abfbbace49e6

ed at catmur dot uk gcc-bugzilla@gcc.gnu.org
Thu May 12 15:17:57 GMT 2022


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

Ed Catmur <ed at catmur dot uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ed at catmur dot uk

--- Comment #3 from Ed Catmur <ed at catmur dot uk> ---
I don't think _GLIBCXX_ASSERTIONS is necessary; you just need -Werror=restrict
and -O2 (not sure what exactly). https://godbolt.org/z/TvfYzbcf6


More information about the Gcc-bugs mailing list