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
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
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;
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88050
Richard Biener changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88050
Andrew Pinski changed:
What|Removed |Added
Keywords||diagnostic
--- Comment #1 from Andrew Pi