llvm-project/clang/test/CXX
Arthur O'Dwyer 5f1de9cab1 [C++20] [P1825] Fix bugs with implicit-move from variables of reference type.
Review D88220 turns out to have some pretty severe bugs, but I *think*
this patch fixes them.

Paper P1825 is supposed to enable implicit move from "non-volatile objects
and rvalue references to non-volatile object types." Instead, what was committed
seems to have enabled implicit move from "non-volatile things of all kinds,
except that if they're rvalue references then they must also refer to non-volatile
things." In other words, D88220 accidentally enabled implicit move from
lvalue object references (super yikes!) and also from non-object references
(such as references to functions).

These two cases are now fixed and regression-tested.

Differential Revision: https://reviews.llvm.org/D98971
2021-03-23 14:12:06 -04: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 [Sema] Add some basic lambda capture fix-its 2021-03-11 13:46:25 +00: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