P1787: My clarification in “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)
Details
Details
- Reviewers
shafik - Group Reviewers
Restricted Project - Commits
- rG5cda0d165a75: [clang] Add test for CWG1821
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo