[PATCH] D138822: [clang] Add test for CWG36

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 28 12:23:47 PST 2022


aaron.ballman added a reviewer: hubert.reinterpretcast.
aaron.ballman added a comment.

Adding Hubert for his C++ conformance opinion.



================
Comment at: clang/test/CXX/drs/dr0xx.cpp:454
+
+namespace dr36 { // dr36: yes
+namespace example1 {
----------------
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.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D138822/new/

https://reviews.llvm.org/D138822



More information about the cfe-commits mailing list