Skip to content

[namespace.udecl]/10 is hard to read #7910

Open
@t3nsor

Description

@t3nsor

If a declaration named by a using-declaration that inhabits the target scope of another declaration B potentially conflicts with it ([basic.scope.scope]), and either is reachable from the other, the program is ill-formed unless B is name-independent and the using-declaration precedes B.

Can we change it to something like this:

If a using-declaration that inhabits the target scope of a declaration B names a declaration A that potentially conflicts with B, [...]

(I know we talked about this sentence in CWG at length when we added the "name-independent" stuff, but it seems like we didn't do much about it...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions