[llvm-bugs] [Bug 40748] New: Can't call multiversioned function from other multiversioned function
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Feb 17 09:05:51 PST 2019
https://bugs.llvm.org/show_bug.cgi?id=40748
Bug ID: 40748
Summary: Can't call multiversioned function from other
multiversioned function
Product: clang
Version: 8.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: steinar+llvm at gunderson.no
CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
richard-llvm at metafoo.co.uk
Hi,
GCC accepts this code, Clang (including version 8) doesn't:
__attribute__((target("sse2"))) int inner();
__attribute__((target("avx2"))) int inner();
__attribute__((target("sse2"))) int outer();
__attribute__((target("sse2")))
int outer()
{
return inner();
}
test.cc:9:9: error: no matching function for call to 'inner'
return inner();
^~~~~
1 error generated.
I don't see how this is supposed to work; the only way I can get it to compile
with Clang is to remove the avx2 version, but that sort of removes the point of
multiversioning.
--
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/20190217/dc016142/attachment-0001.html>
More information about the llvm-bugs
mailing list