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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to