[PATCH] D71142: [Sema] Validate large bitfields

Dávid Bolvanský via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Dec 8 07:08:56 PST 2019


xbolva00 added a comment.

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.


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