[llvm-bugs] [Bug 41614] New: Function multiversioning doesn't support class constructors
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Apr 26 06:37:47 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=41614
Bug ID: 41614
Summary: Function multiversioning doesn't support class
constructors
Product: clang
Version: 8.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: nheart at gmail.com
CC: blitzrakete at gmail.com, dgregor at apple.com,
erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
richard-llvm at metafoo.co.uk
Created attachment 21826
--> https://bugs.llvm.org/attachment.cgi?id=21826&action=edit
Class constructors multiversioning
Hey,
Function multiversioning doesn't support class constructors. Attempting to
compile the attached example results in:
clang++ test2.cpp :(
test2.cpp:7:41: error: attribute 'target' multiversioned functions do not yet
support constructors
__attribute__ ((target("default"))) foo() {
The same example compiles fine in gcc.
Cheers,
Nick
--
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/20190426/64e9ce73/attachment.html>
More information about the llvm-bugs
mailing list