DavidTruby marked an inline comment as done.
DavidTruby added inline comments.


================
Comment at: clang/lib/CodeGen/TargetInfo.cpp:5158-5160
       // For compatibility with GCC, ignore empty bitfields in C++ mode.
       if (getContext().getLangOpts().CPlusPlus &&
           FD->isZeroLengthBitField(getContext()))
----------------
rnk wrote:
> This check seems suspect. I'd suggest constructing a test case involving zero 
> width bitfields to see if we are compatible with MSVC.
I can add tests for this but I think it should go into a separate patch as it's 
not behaviour changed by this patch


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D92751

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to