summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/dr1301.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [cxx2a] P0641R2: (Some) type mismatches on defaulted functions onlyRichard Smith2018-09-281-3/+3
| | | | | | | | | | | | | | | | 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
* Finish PR10217: Ensure we say that a special member was implicitly, notRichard Smith2012-04-021-2/+2
| | | | | | explicitly, deleted in all relevant cases, and explain why. llvm-svn: 153894
* PR10217: Provide diagnostics explaining why an implicitly-deleted specialRichard Smith2012-03-301-11/+11
| | | | | | member function is deleted. llvm-svn: 153773
* When overload resolution picks an implicitly-deleted special memberDouglas Gregor2012-02-151-8/+8
| | | | | | | | | function, provide a specialized diagnostic that indicates the kind of special member function (default constructor, copy assignment operator, etc.) and that it was implicitly deleted. Add a hook where we can provide more detailed information later. llvm-svn: 150611
* PR11650: Implement resolution of core issue 1301. Value initialization can't beRichard Smith2012-02-141-0/+67
used to construct an object of union type with a deleted default constructor (plus fixes for some related value-initialization corner cases). llvm-svn: 150502
OpenPOWER on IntegriCloud