[Bug tree-optimization/79349] unused std::string is not optimized away in presence of a call

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Nov 19 01:04:16 GMT 2025


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

--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This is interesting adding `-D_GLIBCXX_ASSERTIONS` actually GCC then can
optimize away the std::string.


More information about the Gcc-bugs mailing list