https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95772
Marc Pawlowsky changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95772
--- Comment #3 from Jonathan Wakely ---
No, =default means "do the right thing" which sometimes means deleting it.
In class templates that is especially true, where you don't know the properties
of the types used as data members or base classes.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95772
--- Comment #2 from Marc Pawlowsky ---
I understand that it is deleted, but if somebody says it should be defaulted
when it is defaulted that is most likely an error, and it would be nice if a
warning were generated.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95772
--- Comment #1 from Jonathan Wakely ---
(In reply to Marc Pawlowsky from comment #0)
> I expected a diagnostic saying that operator= cannot be defaulted which is
> seen if the ASSIGN code is enabled. The code compiles cleanly.
As expected. The