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

Oleg Endo <olegendo at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #9 from Oleg Endo <olegendo at gcc dot gnu.org> ---
Although the use of string::find most likely doesn't have any performance
impact in this case in a real-world usage, it also doesn't hurt to use
string::compare.

Fixed on trunk (GCC 10) and backported to GCC 9, 8, 7.

Reply via email to