public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/65120] New: [gcc5] Wlogical-not-parentheses should not wanr about double exclamation !!
@ 2015-02-19 13:39 jirislaby at gmail dot com
  2015-02-19 13:41 ` [Bug c/65120] [5 Regression] Wlogical-not-parentheses should not warn " rguenth at gcc dot gnu.org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: jirislaby at gmail dot com @ 2015-02-19 13:39 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 65120
           Summary: [gcc5] Wlogical-not-parentheses should not wanr about
                    double exclamation !!
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jirislaby at gmail dot com

While warning about
  "if (!a == b)"
is perfectly fine and I like it, I do not like warning about
  "if (!!a = b)"
at all. It generates plenty of false positives (in the Linux kernel at least)
and I doubt it can warn about an error at all.

Better than papering over this as
  "if ((!aa) = b)"
or by -Wno-logical-not-parentheses does not make much sense to me (opposing to
the single ! case).

Note: this is all about:
"logical not is only applied to the left hand side of comparison"


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2015-03-10  6:43 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-19 13:39 [Bug c/65120] New: [gcc5] Wlogical-not-parentheses should not wanr about double exclamation !! jirislaby at gmail dot com
2015-02-19 13:41 ` [Bug c/65120] [5 Regression] Wlogical-not-parentheses should not warn " rguenth at gcc dot gnu.org
2015-02-19 13:41 ` [Bug c/65120] [gcc5] " jirislaby at gmail dot com
2015-02-19 13:42 ` [Bug c/65120] [5 Regression] " rguenth at gcc dot gnu.org
2015-02-19 13:49 ` rguenth at gcc dot gnu.org
2015-02-19 14:48 ` jakub at gcc dot gnu.org
2015-02-19 21:46 ` jakub at gcc dot gnu.org
2015-02-27  6:30 ` aldyh at gcc dot gnu.org
2015-02-27  8:25 ` mpolacek at gcc dot gnu.org
2015-03-04 11:38 ` rguenth at gcc dot gnu.org
2015-03-06  9:47 ` rguenth at gcc dot gnu.org
2015-03-09 18:27 ` jakub at gcc dot gnu.org
2015-03-10  6:39 ` jakub at gcc dot gnu.org
2015-03-10  6:43 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).