From cppreference :
From the point of view of unqualified name lookup of any name after a using-directive and until the end of the scope in which it appears, every name from namespace-name is visible as if it were declared in the nearest enclosing namespace which contains both the using-directive and namespace-name.
The "inner-most" scope that contains namespace-name is the scope in which namespace-name is declared, and it must enclose the scope containing the using-directive for the using-directive to be valid.
This implies that "the nearest enclosing namespace which contains both the using-directive and namespace-name" is just the namespace in which namespace-name has been declared. In that case, why phrase it in such a verbose manner?
Am I misunderstanding something? Are there any subtleties here that I'm missing?
usingapplies to the entire merged namespace in that case, doesn't it?using namespace X;. A using-declaration is of the formusing X::Y;. (To make it more confusing both using-directives and using-declarations are declarations.)