[LLVMbugs] [Bug 24264] Name hiding in the same declarative region fails when done via using-directive
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Jul 26 12:57:59 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=24264
Richard Smith <richard-llvm at metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution|--- |INVALID
--- Comment #4 from Richard Smith <richard-llvm at metafoo.co.uk> ---
The reason that your second example is accepted is not [basic.scope.hiding]p1,
it's [basic.lookup.unqual]p1:
"In all the cases listed in 3.4.1, the scopes are searched for a declaration in
the order listed in each of the respective categories; name lookup ends as soon
as a declaration is found for the name."
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150726/0f7e416c/attachment.html>
More information about the llvm-bugs
mailing list