[Bug c++/95149] lex.c:1729:8: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare]

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri May 15 10:32:14 GMT 2020


Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
It is unspecified if "foo" == "foo", not whether "foo" can compare equal to an
automatic variable (it can't).

More information about the Gcc-bugs mailing list