This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/38870] G++ allows modification of data members for a non lvalue object
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jan 2009 20:33:28 -0000
- Subject: [Bug c++/38870] G++ allows modification of data members for a non lvalue object
- References: <bug-38870-17193@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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