[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
Sat Jul 25 17:52:19 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=24264
Richard Smith <richard-llvm at metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |richard-llvm at metafoo.co.uk
Resolution|--- |INVALID
--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
[basic.scope.hiding]p2 only applies in the case where the tag name and the
other name are "declared in the same scope". In this case, struct x is declared
in the scope of namespace N, and int x is declared in global scope, so it does
not apply and the lookup is ambiguous.
--
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/3b07a7e9/attachment.html>
More information about the llvm-bugs
mailing list