shafik added inline comments.
================
Comment at: clang/test/CXX/drs/dr0xx.cpp:454
+
+namespace dr36 { // dr36: yes
+namespace example1 {
----------------
aaron.ballman wrote:
> It took me a while to convince myself, but yes, I agree that Clang seems to
> implement the DR. I had to go back to P1787 to figure that out, but the key
> bit of new wording is:
>
> > If a declaration named by a using-declaration that inhabits the target
> > scope of another declaration potentially conflicts with it
> > ([basic.scope.scope]) and either is reachable from the other, the program
> > is ill-formed. If two declarations named by using-declarationâ s that
> > inhabit the same scope potentially conflict, either is reachable from the
> > other, and they do not both declare functions or function templates, the
> > program is ill-formed.
It makes sense to me as well, although it would have been nice to have some
examples in standard to reflect this as well.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138822/new/
https://reviews.llvm.org/D138822
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits