[Bug c++/63437] [4.9/5 regression][C++14] Parenthesized "movable but not copyable" object doesn't compile in return statement

2014-10-10 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63437 Jason Merrill changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Bug c++/63437] [4.9/5 regression][C++14] Parenthesized "movable but not copyable" object doesn't compile in return statement

2014-10-10 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63437 --- Comment #5 from Jason Merrill --- Author: jason Date: Fri Oct 10 20:35:18 2014 New Revision: 216106 URL: https://gcc.gnu.org/viewcvs?rev=216106&root=gcc&view=rev Log: PR c++/63437 * cp-tree.h (REF_PARENTHESIZED_P): Also allow INDIREC

[Bug c++/63437] [4.9/5 regression][C++14] Parenthesized "movable but not copyable" object doesn't compile in return statement

2014-10-09 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63437 --- Comment #4 from Jason Merrill --- Author: jason Date: Thu Oct 9 18:05:17 2014 New Revision: 216042 URL: https://gcc.gnu.org/viewcvs?rev=216042&root=gcc&view=rev Log: PR c++/63437 * cp-tree.h (REF_PARENTHESIZED_P): Also allow INDIREC

[Bug c++/63437] [4.9/5 regression][C++14] Parenthesized "movable but not copyable" object doesn't compile in return statement

2014-10-02 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63437 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/63437] [4.9/5 regression][C++14] Parenthesized "movable but not copyable" object doesn't compile in return statement

2014-10-02 Thread flast at flast dot jp
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63437 --- Comment #2 from Kohei Takahashi --- (In reply to Andrew Pinski from comment #1) > in C++14 (a) means the same as static_cast(a). > > So it is a reference at this point which means const & is better than &&. > > Or at least that is how I und

[Bug c++/63437] [4.9/5 regression][C++14] Parenthesized "movable but not copyable" object doesn't compile in return statement

2014-10-01 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63437 --- Comment #1 from Andrew Pinski --- in C++14 (a) means the same as static_cast(a). So it is a reference at this point which means const & is better than &&. Or at least that is how I understand this. Does clang implement the C++11 () rule co