https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19377

Nick Matteo <gccbug at kundor dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gccbug at kundor dot org

--- Comment #16 from Nick Matteo <gccbug at kundor dot org> ---
Shall this be marked fixed? With GCC versions 11.1 through 16.2, the example in
comment #0 now produces the error:

<source>: In member function 'void C::f()':
<source>:13:19: error: 'int A::i' is private within this context
   13 |     void f() { A::i = 0; }
      |                   ^
<source>:8:14: note: declared private here
    8 |     using A::i;


The example in comment #9 now produces the error:

<source>:11:19: error: 'int ns::Base::i' is private within this context
   11 |   using ns::Base::i;
      |                   ^
<source>:7:17: note: declared private here
    7 |     using Base::i;

Reply via email to