[llvm-bugs] [Bug 31966] New: libc++ does not support explicit instantiation of valarray transcendentals
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Feb 15 04:00:24 PST 2017
https://bugs.llvm.org/show_bug.cgi?id=31966
Bug ID: 31966
Summary: libc++ does not support explicit instantiation of
valarray transcendentals
Product: libc++
Version: 4.0
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: asiri.rathnayake at arm.com
CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com
The following causes a compile error:
------------>8------------
#include <valarray>
int main() {
std::valarray<double> v00;
std::sinh<double>(v00);
return 0;
}
------------8<------------
Whereas the following use is supported:
------------>8------------
#include <valarray>
int main() {
std::valarray<double> v00;
std::sinh(v00);
return 0;
}
------------8<------------
The former is valid as per the standard (Section 26.6.3.3). libstdc++ (4.8)
supports both forms.
There is a patch to fix this at: https://reviews.llvm.org/D13289 (although it
may have bit-rotted a bit).
--
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/20170215/008ef302/attachment.html>
More information about the llvm-bugs
mailing list