A declaration is
nominable
in a class, class template, or namespace
E at a point
P if
it precedes
P,
it does not inhabit a block scope, and
its target scope is the scope associated with
E or,
if
E is a namespace,
any element of the inline namespace set of
E (
[namespace.def])
.