Any unqualified lookup for the identifier (in the first case)
does not consider scopes that contain
the nearest enclosing namespace or block scope; no name is bound.
This rule also applies to
the form of elaborated-type-specifier that declares a
class-name or friend class since it can be construed
as referring to the definition of the class.