llvm-project/clang/test/CXX/dcl.decl
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
..
dcl.decomp P0969R0: allow structured binding of accessible members, not only public members. 2018-09-25 22:12:44 +00:00
dcl.fct.def [cxx2a] P0641R2: (Some) type mismatches on defaulted functions only 2018-09-28 01:16:43 +00:00
dcl.init Per C++ [over.match.copy]p1, direct-initialization of a reference can 2018-07-02 23:25:22 +00:00
dcl.meaning PR33503: When a qualified name in a redeclaration names a prior declaration in 2018-01-03 23:03:54 +00:00
dcl.name
p4-0x.cpp