llvm-project/clang/test/CXX/special/class.dtor
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
..
p2-0x.cpp
p2.cpp
p3-0x.cpp Cleanup the handling of noinline function attributes, -fno-inline, 2016-12-23 01:24:49 +00:00
p3.cpp
p5-0x.cpp [cxx2a] P0641R2: (Some) type mismatches on defaulted functions only 2018-09-28 01:16:43 +00:00
p5-implicit.cpp Fix tracking of whether a destructor would be deleted. 2017-09-22 01:04:22 +00:00
p9.cpp When diagnosing that a defaulted function is ill-formed because it would be 2016-10-31 18:18:29 +00:00
p10-0x.cpp [Sema] Improve the error diagnostic for dot destructor calls on pointer objects 2017-01-20 15:38:58 +00:00