[Bug c++/88050] Add a warning for breaking the "Rule of Three"

2022-02-10 Thread felix.von.s at posteo dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88050 felix changed: What|Removed |Added CC||felix.von.s at posteo dot de --- Comment #4 from

[Bug c++/88050] Add a warning for breaking the "Rule of Three"

2018-11-16 Thread danielgutson at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88050 --- Comment #3 from Daniel Gutson --- It is not the same and doesn't cover important cases: for example, the opposite one, there is a nontrivial copy ctor implementation but there is no nontrivial dtor. Or even between the special ctors, or there

[Bug c++/88050] Add a warning for breaking the "Rule of Three"

2018-11-16 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88050 --- Comment #2 from Jonathan Wakely --- Your example doesn't even compile, the destructor is private. GCC now has -Wdeprecated-copy which warns for this fixed example: struct Type { ~Type() {} }; int main() { Type t; Type tt = t;

[Bug c++/88050] Add a warning for breaking the "Rule of Three"

2018-11-16 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88050 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/88050] Add a warning for breaking the "Rule of Three"

2018-11-15 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88050 Andrew Pinski changed: What|Removed |Added Keywords||diagnostic --- Comment #1 from Andrew Pi