[llvm-bugs] [Bug 38322] New: constexpr for __builtin_lround family functions

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jul 25 21:34:16 PDT 2018


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

            Bug ID: 38322
           Summary: constexpr for __builtin_lround family functions
           Product: clang
           Version: 6.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: ankur.dedev at tuta.io
                CC: llvm-bugs at lists.llvm.org

Hi,
It would be nice to be able to use the __builtin_lround family functions in
constexpr expressions. GCC is supporting this, it would allow the same code to
compile with both compilers.

example:
constexpr long val = __builtin_lround(2.5);

-- 
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/20180726/7315745e/attachment-0001.html>


More information about the llvm-bugs mailing list