[llvm-bugs] [Bug 44523] New: nvlink error : Undefined reference to '__cxa_pure_virtual' in '/tmp/test2-d01e72.cubin'
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Jan 11 22:40:43 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=44523
Bug ID: 44523
Summary: nvlink error : Undefined reference to
'__cxa_pure_virtual' in '/tmp/test2-d01e72.cubin'
Product: OpenMP
Version: unspecified
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Clang Compiler Support
Assignee: unassignedclangbugs at nondot.org
Reporter: itaru.kitayama at gmail.com
CC: llvm-bugs at lists.llvm.org
The C++ code below doesn't build:
class AbsBase {
virtual int f() = 0;
};
class Derived : public AbsBase {
private:
int a;
public:
int f() { a = 1; return a; }
};
int main() {
#pragma omp target parallel for
for (int i=0;i<10;i++) {
Derived d;
}
}
[kitayama1 at juronc12 ~]$ clang++ -fno-rtti -g -fopenmp -fopenmp-targets=nvptx64
test2.cpp
nvlink error : Undefined reference to '__cxa_pure_virtual' in
'/tmp/test2-ed87e2.cubin'
clang-10: error: nvlink command failed with exit code 255 (use -v to see
invocation)
--
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/20200112/6beb932a/attachment.html>
More information about the llvm-bugs
mailing list