https://bugs.llvm.org/show_bug.cgi?id=35200
Bug ID: 35200
Summary: Regression: new -Wsign-conversion warning after
r316268
Product: new-bugs
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedb...@nondot.org
Reporter: efrie...@codeaurora.org
CC: aa...@aaronballman.com, lebedev...@gmail.com,
llvm-bugs@lists.llvm.org
Testcase:
enum X { A,B,C};
int f(enum X x) { return x; }
<stdin>:2:26: warning: implicit conversion changes signedness: 'enum X' to
'int' [-Wsign-conversion]
int f(enum X x) { return x; }
~~~~~~ ^
1 warning generated.
Technically, the warning is correct, but I'm not sure it's useful. And at the
very least, we should have some regression test coverage for this sort of
thing.
--
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