[llvm-bugs] [Bug 44251] New: Add warning when a bit-field can't hold all enumerate values
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Dec 8 10:16:02 PST 2019
https://bugs.llvm.org/show_bug.cgi?id=44251
Bug ID: 44251
Summary: Add warning when a bit-field can't hold all enumerate
values
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: koraq at xs4all.nl
CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
richard-llvm at metafoo.co.uk
As described in https://reviews.llvm.org/D71142#1774270 add a warning for the
following code:
enum A {a, b, c = 8};
struct T {
enum A field : 2;
};
--
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/20191208/625cc135/attachment.html>
More information about the llvm-bugs
mailing list