public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/4412: possible warning of logic errors not given
@ 2002-11-05  7:48 bangerth
  0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2002-11-05  7:48 UTC (permalink / raw)
  To: Padraig, gcc-bugs, gcc-prs, nobody

Synopsis: possible warning of logic errors not given

State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Tue Nov  5 07:48:30 2002
State-Changed-Why:
    I think you want to much. People use this style of programming
    to make it more clear what they intend, and they will not
    want to get a warning on that. However, if you disagree
    (and maybe volunteer to implement such a warning),we can
    of course reopen this report. 

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4412


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

* c/4412: possible warning of logic errors not given
@ 2001-09-27  8:36 Padraig
  0 siblings, 0 replies; 2+ messages in thread
From: Padraig @ 2001-09-27  8:36 UTC (permalink / raw)
  To: gcc-gnats

>Number:         4412
>Category:       c
>Synopsis:       possible warning of logic errors not given
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 27 08:36:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Padraig@linux.ie
>Release:        2.96 20000731
>Organization:
>Environment:
i386-redhat-linux
>Description:
Basically if I have:
if (var!=const1 || var!=const2)
   printf("This will always happen");
I think you should get a warning when gcc -Wall used.
Perhaps you could handle other logic inconsistencies
also if you can think of any,
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="t.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="t.c"

I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKQp7CiAgICBpbnQgdD0xOwogICAgaWYg
KHQhPTEgfHwgdCE9MikKICAgICAgICBwcmludGYoIkFsd2F5cyB0cnVlXG4iKTsKICAgIHJldHVy
biAwOwp9Cg==


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

end of thread, other threads:[~2002-11-05 15:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-05  7:48 c/4412: possible warning of logic errors not given bangerth
  -- strict thread matches above, loose matches on Subject: below --
2001-09-27  8:36 Padraig

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