This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52755] G++ misses ill-formed trivial implicitly-defined operator= in C++98 mode
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 29 Mar 2012 14:37:26 +0000
- Subject: [Bug c++/52755] G++ misses ill-formed trivial implicitly-defined operator= in C++98 mode
- Auto-submitted: auto-generated
- References: <bug-52755-4@http.gcc.gnu.org/bugzilla/>
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.