Skip to content

Virtual inheritance is lost #236

@Quuxplusone

Description

@Quuxplusone

As of this writing,

struct S {};
class T : virtual S {};

is transformed into

struct S
{
  // inline constexpr S & operator=(const S &) = default;
  // inline constexpr S & operator=(S &&) = default;
  // inline ~S() = default;
};

class T : private S
{
  public: 
  // inline T & operator=(const T &) = default;
  // inline T & operator=(T &&) = default;
  // inline ~T() = default;
};

which loses the "virtual" part of the virtual inheritance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions