public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c/3422: Parentheses eating
@ 2001-06-26  4:16 amodra
  0 siblings, 0 replies; only message in thread
From: amodra @ 2001-06-26  4:16 UTC (permalink / raw)
  To: gcc-gnats

>Number:         3422
>Category:       c
>Synopsis:       Parentheses eating
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 26 04:16:02 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Alan Modra
>Release:        3.0, current mainline, 2.95.2
>Organization:
>Environment:
irrelevant
>Description:
	The following code emits this warning
	warn.c: In function `foo':
	warn.c:3: warning: suggest parentheses around && within ||
>How-To-Repeat:
cat > warn.c <<EOF
int foo (int a, int b)
{
  return (a && b && 1) || 0;
}
EOF
gcc -Wall -c warn.c
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-06-26  4:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-26  4:16 c/3422: Parentheses eating amodra

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).