https://bugs.llvm.org/show_bug.cgi?id=49629
Bug ID: 49629
Summary: Clang 12 applies -fbracket-depth to fold expressions,
which breaks Boost.Mp11
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Boost.Mp11 uses fold expressions internally in the implementation of some of
its algorithms, such as mp_all_of. These algorithms are legitimately applied by
users to lists of (e.g.) 1089 elements (this is easy to achieve when automating
tests with mp_product - 1089 is 33*33, for instance.)
This has worked fine on all Clangs so far, but it breaks under the new 12,
because now -fbracket-depth seems to apply to fold expressions, and its default
value of 256 may be fine for hand-written code, but it's way too low for fold
expressions.
Ref. https://travis-ci.org/github/boostorg/mp11/jobs/762566614#L1087
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs