This is the mail archive of the gcc@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] |
On 2010-11-27, 16:37:07 -0800, James Dennett <james.dennett@gmail.com> wrote: > 4.6 appears to be right -- you cannot bind an X&& to a const X (which > is good, as otherwise you could change the const X). Should this one emit the same error then? 4.6 compiles it. typedef int X; X test() { X const& a={}; return std::move(a); } Thanks
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |