[Bug tree-optimization/86701] Optimize strlen called on std::string c_str()

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jul 27 12:21:00 GMT 2018


--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
How can you determine that without looking at every character, at which point
you might as well just use strlen?

More information about the Gcc-bugs mailing list