llvm-project/clang/test/CXX/temp
Alex Orlov 638dcea010 [clang] Implement P0692R1 from C++20 (access checking on specializations and instantiations)
This patch implements paper P0692R1 from the C++20 standard. 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
This patch also implements option *A* from this paper P0692R1 from the C++20 standard.
This patch follows the @rsmith suggestion from D78404.

Reviewed By: krisb

Differential Revision: https://reviews.llvm.org/D92024
2021-08-10 19:20:50 +04:00
..
concept [Concept] Associated Constraints Infrastructure 2019-10-15 18:44:06 +00:00
temp.arg [c++20] For P0732R2: permit class template argument deduction for non-type template parameters. 2020-10-21 15:03:22 -07:00
temp.constr [clang] fix crash on template instantiation of invalid requires expressions 2021-08-03 23:16:04 +02:00
temp.decls [Sema] Preserve invalid CXXCtorInitializers using RecoveryExpr in initializer 2021-08-10 15:16:52 +02:00
temp.deduct [Concepts] Do not check constraints if not all template arguments have been deduced 2020-02-12 16:02:12 +02:00
temp.deduct.guide [c++20] Add support for explicit(bool), as described in P0892R2. 2019-05-09 03:59:21 +00:00
temp.explicit [Concepts] Deprecate -fconcepts-ts, enable Concepts under -std=c++2a 2020-01-24 00:48:59 +02:00
temp.fct.spec Consistent spelling in diagnostics: {l,r}value instead of {l,r}-value 2020-11-15 18:05:11 +01:00
temp.names
temp.param For P0732R2, P1907R1: ensure that template parameter objects don't refer 2020-10-24 22:11:43 -07:00
temp.pre PR46729: Reject explicit and partial specializations with C linkage. 2020-07-29 17:44:32 -07:00
temp.res DR1413 and part of P1815R2: Minor improvements to Clang's determination 2020-12-15 14:53:26 -08:00
temp.spec [clang] Implement P0692R1 from C++20 (access checking on specializations and instantiations) 2021-08-10 19:20:50 +04:00
temp.type
p3.cpp Improve recovery from invalid template-ids. 2020-03-27 17:11:04 -07:00