[PATCH] D43153: [clang] Implement P0692 "Access Checking on Specializations"

Anton Bikineev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 9 19:07:15 PST 2018


AntonBikineev created this revision.
AntonBikineev added reviewers: rsmith, lebedev.ri.

This is an attempt to implement P0692 <http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0692r1.html>
Please note a couple of things:

1. given that clang already suppresses access checks on explicit specializations of classes as an extension, I decided to not make the feature C++17-specific and backport it to previous standards. Not sure that this is right though;
2. I'm also not sure that ParseOptionalCXXScopeSpecifer in a declarator is the correct place for suppressing checks.


Repository:
  rC Clang

https://reviews.llvm.org/D43153

Files:
  include/clang/Parse/RAIIObjectsForParser.h
  include/clang/Sema/DeclSpec.h
  lib/Parse/ParseDecl.cpp
  lib/Parse/ParseDeclCXX.cpp
  lib/Parse/ParseTemplate.cpp
  test/CXX/drs/dr1xx.cpp
  test/SemaCXX/access.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43153.133736.patch
Type: text/x-patch
Size: 9938 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180210/912134ed/attachment-0001.bin>


More information about the cfe-commits mailing list