This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/36744] function modifying argument received by-value affects caller's variable when passed as rvalue
- From: "gcc-bugzilla at contacts dot eelis dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jul 2008 14:48:05 -0000
- Subject: [Bug c++/36744] function modifying argument received by-value affects caller's variable when passed as rvalue
- References: <bug-36744-5473@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from gcc-bugzilla at contacts dot eelis dot net 2008-07-06 14:48 -------
Forgot to mention: compile with -std=c++0x.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36744