(resending to the mailing list because due to html content)
On 05/31/2012 04:43 PM, Jason Merrill wrote:
Does the C front end warn about this mismatch?
I just tried the first test of g++.old-deja/g++.other/cond5.C and the C front-end does *not* warn neither by default, neither with -Wall.
Do we warn about mismatch in comparisons?
Comparisons are dealt with separately, we have -Wenum-compare: |-Wenum-compare| Warn about a comparison between values of different enumerated types. In C++ this warning is enabled by default. In C this warning is enabled by -Wall. Paolo.