[Bug c++/46264] Trunk [4.6.0 20101028] - An overloaded operator returning rvalue reference invalidates stack.

2010-11-01 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46264 --- Comment #1 from Jonathan Wakely redi at gcc dot gnu.org 2010-11-01 21:49:56 UTC --- foo::operator* returns a reference to a local variable which goes out of scope, causing c.data to contain garbage. operator* should return by value instead

[Bug c++/46264] Trunk [4.6.0 20101028] - An overloaded operator returning rvalue reference invalidates stack.

2010-11-01 Thread mirza.husadzic at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46264 Mirza mirza.husadzic at gmail dot com changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED