[llvm-bugs] [Bug 49629] New: Clang 12 applies -fbracket-depth to fold expressions, which breaks Boost.Mp11

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Mar 18 07:40:56 PDT 2021


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: unassignedclangbugs at nondot.org
          Reporter: pdimov at gmail.com
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210318/805fe890/attachment.html>


More information about the llvm-bugs mailing list