summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/dcl.decl/dcl.decomp/p3.cpp
Commit message (Collapse)AuthorAgeFilesLines
* PR40674: fix assertion failure if a structured binding declaration has aRichard Smith2019-08-241-1/+7
| | | | | | | tuple-like decomposition that produces value-dependent reference bindings. llvm-svn: 369829
* [Sema] Implement DR2386 for C++17 structured bindingReid Kleckner2019-08-151-1/+1
| | | | | | | | | | | | | | | | | | Allow implementations to provide complete definitions of std::tuple_size<T>, but to omit the 'value' member to signal that T is not tuple-like. The Microsoft standard library implements std::tuple_size<const T> this way. If the value member exists, clang still validates that it is an ICE, but if it does not, then the type is considered to not be tuple-like. Fixes PR33236 Reviewers: rsmith Differential Revision: https://reviews.llvm.org/D66040 llvm-svn: 369043
* [Sema] P0961R1: Relaxing the structured bindings customization point finding ↵Erik Pilkington2018-08-091-6/+71
| | | | | | | | rules Differential revision: https://reviews.llvm.org/D50418 llvm-svn: 339375
* [c++1z] P0490R0, NB comment GB 20: if std::tuple_size<T> is complete, use theRichard Smith2016-12-081-1/+1
| | | | | | | | tuple-like interpretation of decomposition declaration even if there is no ::value member. We already did this, anticipating this resolution, just update comments and tweak a testcase. llvm-svn: 289021
* P0217R3: Constant expression evaluation for decomposition declarations.Richard Smith2016-08-121-0/+29
| | | | llvm-svn: 278447
* P0217R3: Perform semantic checks and initialization for the bindings in aRichard Smith2016-08-111-0/+203
decomposition declaration for arrays, aggregate-like structs, tuple-like types, and (as an extension) for complex and vector types. llvm-svn: 278435
OpenPOWER on IntegriCloud