This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/52755] G++ misses ill-formed trivial implicitly-defined operator= in C++98 mode


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]