[llvm-bugs] [Bug 35200] New: Regression: new -Wsign-conversion warning after r316268
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Nov 3 15:11:23 PDT 2017
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: unassignedbugs at nondot.org
Reporter: efriedma at codeaurora.org
CC: aaron at aaronballman.com, lebedev.ri at gmail.com,
llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20171103/e5ecacae/attachment.html>
More information about the llvm-bugs
mailing list