[llvm-bugs] [Bug 31663] New: Clang's __builtin_hypot is not constexpr but GCC's is.
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Jan 16 19:22:41 PST 2017
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: unassignedclangbugs at nondot.org
Reporter: eric at efcs.ca
CC: dgregor at apple.com, llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170117/ea9e063e/attachment.html>
More information about the llvm-bugs
mailing list