This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/36744] [C++0x] function modifying argument received by-value affects caller's variable when passed as rvalue



------- Comment #6 from jason at gcc dot gnu dot org  2009-02-11 05:23 -------
Subject: Bug 36744

Author: jason
Date: Wed Feb 11 05:23:02 2009
New Revision: 144091

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144091
Log:
        PR c++/36744
        * tree.c (lvalue_p_1): Condition rvalue ref handling on
        treat_class_rvalues_as_lvalues, too.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/rv9p.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/tree.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36744


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]