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

--- Comment #11 from Jonathan Wakely <redi at gcc dot gnu.org> ---
For GCC 10 it was arguably even worse:

null.cc: In function 'bool hasTag(const char*)':
null.cc:14:31: warning: null argument where non-null required (argument 1)
[-Wnonnull]
   14 |     return result->compare(tag) == 0;
      |                               ^

This makes it look like GCC is complaining about the 'tag' argument.

Reply via email to