[PATCH] D71142: [Sema] Validate large bitfields

Mark de Wever via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Dec 8 10:18:17 PST 2019


Mordante marked an inline comment as done.
Mordante added a comment.

In D71142#1774270 <https://reviews.llvm.org/D71142#1774270>, @xbolva00 wrote:

> Maybe a bit offtopic, but it would be good to diagnose this case too:
>
>   enum A {a, b, c = 8};
>  
>   struct T {
>       enum A field : 2;
>   };
>
>
> GCC catches this bug.


I created https://bugs.llvm.org/show_bug.cgi?id=44251 and will look at adding this warning.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D71142/new/

https://reviews.llvm.org/D71142





More information about the cfe-commits mailing list