vtable Emission inconsistency

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

[Note: This is an extremely stripped down case to show the issue]

The following class when compiled with g++ 4.9.2 emits the vtable for class Foo:

class Foo
{

  virtual void dosomething() { }
  virtual ~Foo() noexcept __attribute__((used)) { }
};

The following class when compiled does not emit the vtable:

class Foo
{

  virtual void dosomething() { }
  virtual ~Foo() noexcept __attribute__((used)) = default;
};


While this is a trivial problem to fix, it seems to me that the
behaviour is inconsistent.

Bug? Expected/undefined behaviour? Fixed in a later release?

Thanks.

--Mike



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux