[llvm-bugs] [Bug 48032] New: undefined reference to destructor of local class
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Oct 31 03:22:42 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=48032
Bug ID: 48032
Summary: undefined reference to destructor of local class
Product: clang
Version: 10.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: huangqinjin 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
struct cmd
{
virtual ~cmd() {}
};
int main()
{
struct echo; // no error if comment out this line
struct echo : cmd {};
new echo; // undefined reference to `main::echo::~echo()'
echo e; // no error
}
--
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/20201031/5353d10e/attachment.html>
More information about the llvm-bugs
mailing list