public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/47734] New: no "comparisons like X<=Y<=Z do not have their mathematical meaning" warning in c++
@ 2011-02-14 16:16 sds at gnu dot org
2011-02-14 16:20 ` [Bug c++/47734] " manu at gcc dot gnu.org
2011-03-29 16:45 ` redi at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: sds at gnu dot org @ 2011-02-14 16:16 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47734
Summary: no "comparisons like X<=Y<=Z do not have their
mathematical meaning" warning in c++
Product: gcc
Version: 4.1.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: sds@gnu.org
gcc issues a warning
comparisons like X<=Y<=Z do not have their mathematical meaning
for code like
if (-2 < -1 < 0) {
....
}
but c++ does not.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/47734] no "comparisons like X<=Y<=Z do not have their mathematical meaning" warning in c++
2011-02-14 16:16 [Bug c++/47734] New: no "comparisons like X<=Y<=Z do not have their mathematical meaning" warning in c++ sds at gnu dot org
@ 2011-02-14 16:20 ` manu at gcc dot gnu.org
2011-03-29 16:45 ` redi at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: manu at gcc dot gnu.org @ 2011-02-14 16:20 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47734
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2011.02.14 16:16:37
CC| |manu at gcc dot gnu.org
Ever Confirmed|0 |1
--- Comment #1 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2011-02-14 16:16:37 UTC ---
In gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3
I get the warning for:
int test(void) {
if(-2 < -1 < 0) { return 0;}
return 1;
}
g++ -Wall -Wextra test.cc -c
test.cc: In function ‘int test()’:
test.cc:2: warning: comparisons like ‘X<=Y<=Z’ do not have their mathematical
meaning
4.1.2 is too old.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/47734] no "comparisons like X<=Y<=Z do not have their mathematical meaning" warning in c++
2011-02-14 16:16 [Bug c++/47734] New: no "comparisons like X<=Y<=Z do not have their mathematical meaning" warning in c++ sds at gnu dot org
2011-02-14 16:20 ` [Bug c++/47734] " manu at gcc dot gnu.org
@ 2011-03-29 16:45 ` redi at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2011-03-29 16:45 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47734
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |WORKSFORME
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-03-29 16:38:32 UTC ---
fixed in current releases
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-03-29 16:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-14 16:16 [Bug c++/47734] New: no "comparisons like X<=Y<=Z do not have their mathematical meaning" warning in c++ sds at gnu dot org
2011-02-14 16:20 ` [Bug c++/47734] " manu at gcc dot gnu.org
2011-03-29 16:45 ` redi 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).