Skip to content

using 'class name' causes vtable to not be emitted when compiling with -g #33511

@jrmuizel

Description

@jrmuizel
Bugzilla Link 34163
Resolution FIXED
Resolved on Aug 17, 2017 10:27
Version unspecified
OS All
Blocks #33196
CC @DougGregor,@froydnj,@zmodem,@zygoloid,@HighCommander4

Extended Description

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() {
}

Metadata

Metadata

Assignees

Labels

bugzillaIssues migrated from bugzillac++

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions