http://llvm.org/bugs/show_bug.cgi?id=21355
Bug ID: 21355
Summary: Another "Global is marked as dllimport, but not
external" assert, for VTables
Product: clang
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Yet another case of problems with dllimport (see also fixed bug 13450 and
20792).
// ---------------------------------
class __declspec(dllimport) C {
public:
virtual ~C();
};
C::~C() {}
// ---------------------------------
Compile with:
clang -c --target=x86_64-windows-gnu test.cpp
I have seen this on r219922.
When compiled, this generates the warning that the 'dllimport' attribute is
dropped for the destructor. However, this must have some effect on how the
vtable is generated, because then we get the "Global is marked as dllimport,
but not external" assertion, and the reported global is the vtable for C.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs