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

            Bug ID: 31663
           Summary: Clang's __builtin_hypot is not constexpr but GCC's is.
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangb...@nondot.org
          Reporter: e...@efcs.ca
                CC: dgre...@apple.com, llvm-bugs@lists.llvm.org
    Classification: Unclassified

Clang's __builtin_hypot should be evaluatable in constant expressions just like
GCC's.

// clang++ -std=c++1z test.cpp
constexpr auto x = __builtin_hypot(1., 1.);

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to