Re: using ENUM::V

2020-10-19 Thread Jason Merrill via Gcc-patches
On 11/15/19 12:07 PM, Nathan Sidwell wrote: Jason, using ENUM::v is proving rather tricky, when the memberness of the enumerator and the context of the using decl differ. struct B {   enum E {e}; }; struct D { private:   using B::e; // ok   static inline const auto ok1 = e; // #1

using ENUM::V;

2019-11-15 Thread Nathan Sidwell
Jason, using ENUM::v is proving rather tricky, when the memberness of the enumerator and the context of the using decl differ. struct B { enum E {e}; }; struct D { private: using B::e; // ok static inline const auto ok1 = e; // #1 accessible }; struct F : D { static inline const auto