https://bugs.llvm.org/show_bug.cgi?id=36008
Bug ID: 36008
Summary: Regression (r316268): erroneous -Wsign-compare for
typeof(enum T) and typeof(enumValue)
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
Assignee: unassignedclangb...@nondot.org
Reporter: arpha...@gmail.com
CC: llvm-bugs@lists.llvm.org
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.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs