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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits