[llvm-bugs] [Bug 27742] Self referential using declaration inside a derived class lack an accompanying Note in C++11

via llvm-bugs llvm-bugs at lists.llvm.org
Fri May 13 17:59:22 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=27742

Charles Li <charles_li at playstation.sony.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Charles Li <charles_li at playstation.sony.com> ---
(In reply to comment #1)
> This is actually correct; C++98 and C++11 have different rules here.
> 
> In C++98, the rule is that a declaration named by a using-declaration has to
> resolve to a member of a base class, so we first look up what C::bar means,
> and then diagnose because it's a member of our own class, C.
> 
> In C++11, the rule is that the nested-name-specifier ("C::") must name a
> base class, so in that case we reject it without ever looking up what
> "C::bar" might name.

Thank you. 

I will Resolve this bug as Invalid.

-- 
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/20160514/5ccca05d/attachment-0001.html>


More information about the llvm-bugs mailing list