[PATCH] D131202: [Clang] Fix capture of values initialized by bitfields

Alexander Yermolovich via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 10 10:06:28 PDT 2022


ayermolo added a comment.

Thanks for reverting this.
Previous commit broke build of projects using fmt library.
https://github.com/fmtlib/fmt/blame/master/include/fmt/format.h

  fmt/fmt/include/fmt/format.h:1904:9: error: cannot capture a bit-field by reference
       if (sign) *it++ = detail::sign<Char>(sign);
           ^
   fmt/fmt/include/fmt/format.h:1814:8: note: 'sign' declared here
     auto sign = fspecs.sign;
          ^
   fmt/fmt/include/fmt/core.h:2741:10: note: bit-field is declared here
     sign_t sign : 8;




Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D131202



More information about the cfe-commits mailing list