[all-commits] [llvm/llvm-project] 5cda0d: [clang] Add test for CWG1821
Vlad Serebrennikov via All-commits
all-commits at lists.llvm.org
Mon Apr 24 23:04:01 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5cda0d165a752c8041e8da4d39632c001463fa30
https://github.com/llvm/llvm-project/commit/5cda0d165a752c8041e8da4d39632c001463fa30
Author: Vlad Serebrennikov <serebrennikov.vladislav at gmail.com>
Date: 2023-04-25 (Tue, 25 Apr 2023)
Changed paths:
M clang/test/CXX/drs/dr18xx.cpp
M clang/www/cxx_dr_status.html
Log Message:
-----------
[clang] Add test for CWG1821
[[https://wg21.link/p1787 | P1787]]: My clarification in [[ http://lists.isocpp.org/core/2019/06/6614.php | “Where can namespace-scope functions and variables be redeclared?” ]] is applied, resolving CWG1821.
Wording: (If the declaration is not a friend declaration:) If the id-expression in a declarator-id is a qualified-id Q, let S be its lookup context; the declaration shall inhabit a namespace scope. ([dcl.meaning]/1)
Reviewed By: shafik, #clang-language-wg
Differential Revision: https://reviews.llvm.org/D149003
More information about the All-commits
mailing list