[LLVMbugs] [Bug 21355] New: Another "Global is marked as dllimport, but not external" assert, for VTables
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Oct 23 03:50:58 PDT 2014
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: unassignedclangbugs at nondot.org
Reporter: dario.domizioli at gmail.com
CC: llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141023/7fbd694d/attachment.html>
More information about the llvm-bugs
mailing list