This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/47214] False warning "null argument where non-null required"


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47214

Richard Guenther <rguenth at gcc dot gnu.org> changed:

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

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-01-11 11:55:08 UTC ---
The warning is at a level that doesn't see previous tests.  Instead it sees

  if (strcasecmp (s, i >= 0 && i <= last ? table[i] : 0B) == 0)

where it is not obvious that i >= 0 && i <= last is true.  In fact, there
is no way to see that i <= last is true.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]