[Bug c/84953] [6/7/8 Regression] misleading warning from strpbrk(x,"")

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Mar 19 18:57:00 GMT 2018


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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I disagree, it is a well documented behavior and user gets exactly what he
asked for.  There is no questionable or problematic behavior with those
options.  It is not any different from strchr ("abcd", 'e') and many other
functions that can be determined at compile time to return NULL.


More information about the Gcc-bugs mailing list