Extended Description
In LLVM 6 Clang reports -Wsign-compare:
comparison of integers of different signs: 'typeof (lhs)' (aka 'enum EnumTest') and 'typeof (kValue)' (aka 'int')
For the following sample:
enum EnumTest {
kValue = 0,
};
void foo(enum EnumTest lhs) {
typeof(lhs) x = lhs;
typeof(kValue) y = kValue;
x == y;
}
This is a regression after r316268.