Title
Access of indirect virtual base class constructors
Status
drafting
Section
11.8.3 [class.access.base]
Submitter
Vinny Romano

Created on 2016-03-08.00:00:00 last changed 73 months ago

Messages

Date: 2016-12-15.00:00:00

Notes from the December, 2016 teleconference:

The injected-class-name is irrelevant to the example, which is ill-formed. The access should be permitted only if conversion of the this pointer to a pointer to the base class would succeed.

Date: 2022-02-18.07:47:23

Consider this example from issue 7:

  class Foo { };
  class A : virtual private Foo { };
  class Bar : public A { }; 

This example should cause Bar's defaulted default constructor to be deleted, because it does not have access to the injected-class-name Foo.

History
Date User Action Args
2018-04-11 00:00:00adminsetstatus: open -> drafting
2017-02-06 00:00:00adminsetmessages: + msg5810
2016-03-08 00:00:00admincreate