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.