[PATCH] D92024: [clang] Partially implement P0692R1 from C++20 (access checking on specializations)

Alex Orlov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 24 05:59:41 PST 2020


aorlov created this revision.
aorlov added reviewers: broadwaylamb, rsmith, saar.raz, doug.gregor.
aorlov added projects: LLVM, clang.
Herald added a subscriber: cfe-commits.
aorlov requested review of this revision.

Disable usual access checking rules to template argument names in a declaration of partial specializations, explicit instantiation or explicit specialization (C++20 13.7.5/10, 13.9.1/6).

Fixes: https://llvm.org/PR37424


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D92024

Files:
  clang/include/clang/Parse/Parser.h
  clang/lib/Parse/ParseDecl.cpp
  clang/lib/Parse/ParseDeclCXX.cpp
  clang/lib/Parse/ParseTemplate.cpp
  clang/test/CXX/drs/dr1xx.cpp
  clang/test/CXX/temp/temp.spec/func.spec.cpp
  clang/test/CXX/temp/temp.spec/part.spec.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92024.307324.patch
Type: text/x-patch
Size: 28987 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201124/5ff35dbc/attachment-0001.bin>


More information about the cfe-commits mailing list