[Bug c++/52755] G++ misses ill-formed trivial implicitly-defined operator= in C++98 mode
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Mar 29 14:46:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52755
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |accepts-invalid
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-03-29
Summary|Error on use of implicitly |G++ misses ill-formed
|deleted operator= |trivial implicitly-defined
| |operator= in C++98 mode
Ever Confirmed|0 |1
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> 2012-03-29 14:37:26 UTC ---
clang is correct in this case; the testcase should be rejected in c++98 mode as
well. operator= is defined as memberwise assignment even if it's trivial. So
the C++98 mode behavior is the bug.
More information about the Gcc-bugs
mailing list