llvm-project/clang/test/CXX
Matheus Izvekov 3ad6dd5d8f [clang] Use decltype((E)) for compound requirement type constraint
See PR45088.

Compound requirement type constraints were using decltype(E) instead of
decltype((E)), as per `[expr.prim.req]p1.3.3`.

Since neither instantiation nor type dependence should matter for
the constraints, this uses an approach where a `decltype` type is not built,
and just the canonical type of the expression after template instantiation
is used on the requirement.

Signed-off-by: Matheus Izvekov <mizvekov@gmail.com>

Reviewed By: rsmith

Differential Revision: https://reviews.llvm.org/D98160
2021-03-30 22:00:33 +02:00
..
basic [Sema] Fold VLAs to constant arrays in a few more contexts 2020-12-04 10:03:23 -05:00
class [C++20] [P1825] Fix bugs with implicit-move from variables of reference type. 2021-03-23 14:12:06 -04:00
class.access Remove redundant check for access in the conversion from the naming 2020-11-29 19:21:59 -08:00
class.derived Defer checking for mismatches between the deletedness of and overriding 2020-03-12 13:07:22 -07:00
conv [Sema][C++] Propagate conversion kind to specialize the diagnostics 2020-02-25 16:05:37 +00:00
cpp [Clang] Add __STDCPP_THREADS__ to standard predefine macros 2020-11-22 16:05:53 -08:00
dcl [clang] Fix ICE on invalid type parameters for concepts 2021-03-13 01:23:02 +01:00
dcl.dcl Automate common diagnostic checking for statement attributes 2021-03-19 08:35:38 -04:00
dcl.decl [Sema] Introduce function reference conversion, NFC 2020-11-22 20:51:57 +01:00
drs [Sema] Add some basic lambda capture fix-its 2021-03-11 13:46:25 +00:00
except [CodeGen] Apply 'nonnull' and 'dereferenceable(N)' to 'this' pointer 2020-11-16 17:39:17 -08:00
expr [clang] Use decltype((E)) for compound requirement type constraint 2021-03-30 22:00:33 +02:00
lex [c++20] For P0732R2: Support string literal operator templates. 2020-10-25 00:34:15 -07:00
module Improve diagnostics for missing import / #include of module. 2020-04-28 18:41:14 -07:00
modules-ts [test] Add {{.*}} to make ELF tests immune to dso_local/dso_preemptable/(none) differences 2020-12-31 00:27:11 -08:00
over [c++20] Further extend the set of comparisons broken by C++20 that we 2020-03-20 14:22:48 -07:00
special PR48763: Better handling for classes that inherit a default constructor. 2021-01-18 18:54:04 -08:00
stmt.stmt Add diagnostic for for-range-declaration being specificed with thread_local 2020-12-04 15:06:35 -08:00
temp [test] Add {{.*}} to make tests immune to dso_local/dso_preemptable/(none) differences 2020-12-30 20:52:01 -08:00