[Bug c++/38870] G++ allows modification of data members for a non lvalue object
stefan dot constantin at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri Jan 16 12:11:00 GMT 2009
------- Comment #1 from stefan dot constantin at gmail dot com 2009-01-16 12:07 -------
Sorry for not mentioning this earlier,
the sample program provide compiles without error or warning with
g++ -Wall.
I expected the compiler to error on the line "tester().i = 10;" because such a
construct requires an lvalue.
Thanks
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38870
More information about the Gcc-bugs
mailing list