llvm-project/clang/test/CXX/special/class.copy
Richard Smith 9b2c5e7c44 [cxx2a] P0641R2: (Some) type mismatches on defaulted functions only
render the function deleted instead of rendering the program ill-formed.

This change also adds an enabled-by-default warning for the case where
an explicitly-defaulted special member function of a non-template class
is implicitly deleted by the type checking rules. (This fires either due
to this language change or due to pre-C++20 reasons for the member being
implicitly deleted). I've tested this on a large codebase and found only
bugs (where the program means something that's clearly different from
what the programmer intended), so this is enabled by default, but we
should revisit this if there are problems with this being enabled by
default.

llvm-svn: 343285
2018-09-28 01:16:43 +00:00
..
implicit-move-def.cpp Remove custom handling of array copies in lambda by-value array capture and 2016-12-14 00:03:17 +00:00
implicit-move.cpp
p3.cpp
p8-cxx11.cpp
p9.cpp
p11.0x.copy.cpp Fold -Wreturn-stack-address into general initialization lifetime 2018-07-23 21:21:22 +00:00
p11.0x.move.cpp Restructure checking for, and warning on, lifetime extension. 2018-07-17 22:24:09 +00:00
p12-0x.cpp [cxx2a] P0641R2: (Some) type mismatches on defaulted functions only 2018-09-28 01:16:43 +00:00
p13-0x.cpp
p15-0x.cpp
p15-inclass.cpp
p18-cxx11.cpp
p20.cpp Fix mishandling of deletedness for assignment operators of classes with 2016-08-31 20:37:39 +00:00
p23-cxx11.cpp [cxx2a] P0641R2: (Some) type mismatches on defaulted functions only 2018-09-28 01:16:43 +00:00
p25-0x.cpp
p28-cxx11.cpp
p33-0x.cpp