[llvm-bugs] [Bug 37633] New: overflow builtins are not constexpr

via llvm-bugs llvm-bugs at lists.llvm.org
Wed May 30 16:11:02 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=37633

            Bug ID: 37633
           Summary: overflow builtins are not constexpr
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++14
          Assignee: unassignedclangbugs at nondot.org
          Reporter: john at mcfarlane.name
                CC: llvm-bugs at lists.llvm.org

It would be beneficial if overflow builtins [1] could be used in constant
expressions. This would bring Clang in line with GCC 7.x [2].

1.
https://clang.llvm.org/docs/LanguageExtensions.html#checked-arithmetic-builtins
2. https://godbolt.org/g/5eWcNb

-- 
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/20180530/4edc7be3/attachment.html>


More information about the llvm-bugs mailing list