On 11/13/20 1:35 PM, Jason Merrill via Gcc-patches wrote:
This feature allows the programmer to import enumerator names into the current scope so later mentions don't need to use the fully-qualified name. These usings are not subject to the usual restrictions on using-declarations: in particular, they can move between class and non-class scopes, and between classes that are not related by inheritance. This last caused difficulty for our normal approach to using-decls within a class hierarchy, as we assume that the class where we looked up a used declaration is derived from the class where it was first declared. So to simplify things, in that case we make a clone of the CONST_DECL in the using class.
Thanks for finishing this off! Now, let's see what that broke in modules ...
nathan -- Nathan Sidwell