This fixes a regression introduced in 127bf44
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/test/SemaCXX/lambda-expressions.cpp | ||
---|---|---|
680 ↗ | (On Diff #450128) | This still should be accepted -- a is an const int & that was materialized from a temporary and lifetime extended, so it's not a bit-field. |
Comment Actions
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;