[Bug c++/38870] G++ allows modification of data members for a non lvalue object

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Jan 16 20:33:00 GMT 2009



------- Comment #2 from pinskia at gcc dot gnu dot org  2009-01-16 20:33 -------
Except really it is 5.2.5 that causes this to be invalid code.  Well the C++
standard as written in 1998, it is valid but there is a defect report against
it and it fixed this code to be invalid.

*** This bug has been marked as a duplicate of 15218 ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38870



More information about the Gcc-bugs mailing list