[Bug c++/58040] Cannot take address-of public using-declaration of member from protected base class

2021-08-04 Thread gcc at mattwhitlock dot name via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58040 --- Comment #10 from Matt Whitlock --- So using declarations are not a direct replacement for user-defined thunks. Today I learned! This makes using declarations decidedly less useful than I believed. Thank you for your time, Jonathan Wakely.

[Bug c++/58040] Cannot take address-of public using-declaration of member from protected base class

2021-08-04 Thread gcc at mattwhitlock dot name via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58040 --- Comment #8 from Matt Whitlock --- Maybe this example will demonstrate it more clearly. /* begin example */ class PublicBase { public: void pub_base_pub_memb(); protected: void pub_base_prot_memb(); }; class ProtectedBase {