https://bugs.llvm.org/show_bug.cgi?id=34163
Bug ID: 34163
Summary: using 'class name' causes vtable to not be emitted
when compiling with -g
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangb...@nondot.org
Reporter: jmuizel...@mozilla.com
CC: dgre...@apple.com, llvm-bugs@lists.llvm.org
The following code does not get a vtable emitted when compiling with clang
5.0.0 (release_50@310398). Removing the 'using mozilla::B' line causes it to be
emitted. The vtable is also emitted when not using '-g'
class FontInfoData;
class A {
void F(FontInfoData *aFontInfoData);
};
namespace mozilla {
struct B
{
A* mAttrs;
};
}
using mozilla::B;
using namespace mozilla;
class FontInfoData {
void Release() {
delete this;
}
virtual ~FontInfoData() {}
virtual void R();
};
void FontInfoData::R() {
}
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs