[Bug c++/95772] warning desired when default operator= cannot be constructued

2020-06-20 Thread marcpawl at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95772 Marc Pawlowsky changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/95772] warning desired when default operator= cannot be constructued

2020-06-20 Thread redi at gcc dot gnu.org
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.

[Bug c++/95772] warning desired when default operator= cannot be constructued

2020-06-19 Thread marcpawl at gmail dot com
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.

[Bug c++/95772] warning desired when default operator= cannot be constructued

2020-06-19 Thread redi at gcc dot gnu.org
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