llvm-project/clang/test/CXX/drs
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
..
dr0xx.cpp Related to PR37768: improve diagnostics for class name shadowing. 2018-06-20 21:58:20 +00:00
dr1xx.cpp Fix regression in r332076. 2018-05-14 20:52:48 +00:00
dr2xx.cpp Replace remaining user-visible mentions of C++1z with C++17. 2017-08-13 22:26:53 +00:00
dr3xx.cpp DR330: when determining whether a cast casts away constness, consider 2018-07-18 20:13:36 +00:00
dr4xx.cpp [Sema] Use %sub to cleanup overload diagnostics 2018-05-30 01:00:41 +00:00
dr5xx.cpp Adjust and fix failing CXX tests after r332799 2018-05-19 03:33:56 +00:00
dr6xx.cpp [cxx2a] P0641R2: (Some) type mismatches on defaulted functions only 2018-09-28 01:16:43 +00:00
dr7xx.cpp DR727: remove wrong assertion for use of class-scope explicit 2018-04-23 18:38:30 +00:00
dr9xx.cpp
dr10xx.cpp When substituting previously-checked template arguments into a template 2018-03-08 01:07:33 +00:00
dr11xx.cpp DR1113: anonymous namespaces formally give their contents internal linkage. 2017-09-22 22:21:44 +00:00
dr12xx.cpp DR1213: Ignore implicit conversions when determining if an operand of an 2018-06-27 20:29:32 +00:00
dr13xx.cpp PR38627: Fix handling of exception specification adjustment for 2018-09-05 22:30:37 +00:00
dr14xx.cpp DR1672, DR1813, DR1881, DR2120: Implement recent fixes to "standard 2018-04-05 18:55:37 +00:00
dr15xx.cpp DR1687: When overload resolution selects a built-in operator, implicit 2018-06-27 20:30:34 +00:00
dr16xx.cpp Warn if a local variable's initializer retains a pointer/reference to a 2018-07-24 00:55:08 +00:00
dr17xx.cpp P0136R1, DR1573, DR1645, DR1715, DR1736, DR1903, DR1941, DR1959, DR1991: 2016-06-28 19:03:57 +00:00
dr18xx.cpp Fold -Wreturn-stack-address into general initialization lifetime 2018-07-23 21:21:22 +00:00
dr19xx.cpp PR31606: Generalize our tentative DR resolution for inheriting copy/move 2017-01-13 20:46:54 +00:00
dr20xx.cpp PR33850: Update cxx_dr_status for Clang 5 branch. 2017-08-11 03:14:20 +00:00
dr21xx.cpp DR1672, DR1813, DR1881, DR2120: Implement recent fixes to "standard 2018-04-05 18:55:37 +00:00
dr22xx.cpp DR1672, DR1813, DR1881, DR2120: Implement recent fixes to "standard 2018-04-05 18:55:37 +00:00
dr118.cpp Add tests for a couple more DRs. 2016-12-09 19:35:45 +00:00
dr158.cpp Make '-disable-llvm-optzns' an alias for '-disable-llvm-passes'. 2016-12-23 00:23:01 +00:00
dr412.cpp
dr1748.cpp