[Bug c++/52185] Const member function may change the object for which the function is called.

2012-02-09 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52185 --- Comment #1 from Andrew Pinski pinskia at gcc dot gnu.org 2012-02-09 16:44:20 UTC --- Comeau C++ does not error out either.

[Bug c++/52185] Const member function may change the object for which the function is called.

2012-02-09 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52185 Jonathan Wakely redi at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug c++/52185] Const member function may change the object for which the function is called.

2012-02-09 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52185 --- Comment #3 from Jonathan Wakely redi at gcc dot gnu.org 2012-02-09 17:11:40 UTC --- [class.this] says, In a const member function, the object for which the function is called is accessed through a const access path; That doesn't mean the

[Bug c++/52185] Const member function may change the object for which the function is called.

2012-02-09 Thread lsoltysiak at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52185 --- Comment #4 from xfg lsoltysiak at gmail dot com 2012-02-09 18:30:34 UTC --- Ok, I understood. Pointers are also quite good examples, to explain that. Thanks Jonathan.