Title
[[hiding]], using-declarations, and multiple inheritance
Status
nad
Section
_N3225_.7.6.5 [dcl.attr.override]
Submitter
Daveed Vandevoorde

Created on 2010-03-26.00:00:00 last changed 170 months ago

Messages

Date: 2010-11-15.00:00:00

Rationale (November, 2010):

The consensus of the CWG was that the using-declaration does, indeed, hide B2::f() and thus D should be ill-formed.

Date: 2022-11-20.07:54:16

The intent appears to be that the following example is well-formed, even though D::f(int) hides B2::f():

    struct B1 { void f(); };
    struct B2 { void f(); };
    struct[[base_check]] D: B1, B2 {
      using B1::f;
      void f(int);
    };

However, this is not reflected in the current wording.

History
Date User Action Args
2010-11-29 00:00:00adminsetmessages: + msg3212
2010-11-29 00:00:00adminsetstatus: open -> nad
2010-03-26 00:00:00admincreate