Open Quuxplusone opened 14 years ago
We were just marveling at the gcc warning on the following code:
bool x = 3 < 4 < 5;
test.cc:3: warning: comparisons like ‘X<=Y<=Z’ do not have their mathematical meaning
So I thought to see what clang thinks of it. No warning at all!
(llvm/clang r111814)
This would be a great warning to have.
We were just marveling at the gcc warning on the following code:
bool x = 3 < 4 < 5;
test.cc:3: warning: comparisons like ‘X<=Y<=Z’ do not have their mathematical meaning
So I thought to see what clang thinks of it. No warning at all!
(llvm/clang r111814)