Bug#570838: missing warning, false error

2010-02-21 Thread Prohle Peter
I think there are inconsistencies warnings. #include int main( void ) { for ( int i=0, j=99 ; (++j) = 99 , i<9 ; ++i ) { std::cout << i << ' ' << j << std::endl; } return 0; } /usr/bin/g++ -Wall the source code above yields NO warning, while the increased value 100 of j is UNUSED, si

Bug#570838: lower the severity

2010-02-21 Thread Prohle Peter
Sorry, I was wrong. I assumed, that the warning is concerning the subexpression (++i), but if we remove the <99 comparison, then the warning disappears, and hence the warning is concerning the unsused value of the coparison, namely the value of the non-last member of the comma expression is n