[llvm-bugs] [Bug 32302] New: Template parameter type deduction of function conflicts when parameter is a vector return value of builtin function
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Mar 16 02:08:21 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=32302
Bug ID: 32302
Summary: Template parameter type deduction of function
conflicts when parameter is a vector return value of
builtin function
Product: clang
Version: trunk
Hardware: Other
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: westion717 at gmail.com
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
cat a.C
template <class A>
A f(const A& a, const A& b){
return a+b;
}
int main(){
vector int a;
vector float b;
f(__builtin_altivec_vcfsx(a,0),b);
}
clang++ a.C -faltivec
a.C:9:1: error: no matching function for call to 'f'
f(__builtin_altivec_vcfsx(a,0),b);
^
a.C:2:3: note: candidate template ignored: deduced conflicting types for
parameter 'A' ('__attribute__((__vector_size__(4 * sizeof(float)))) float'
(vector of 4 'float' values) vs. '__vector float' (vector of 4 'float'
values))
A f(const A& a, const A& b){
^
1 error generated.
--
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/20170316/888a679b/attachment-0001.html>
More information about the llvm-bugs
mailing list