[Bug c++/34022] C++0x: rvalue references and std::forward() broken with built-in types
dgregor at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Nov 18 14:15:00 GMT 2007
------- Comment #4 from dgregor at gcc dot gnu dot org 2007-11-18 14:15 -------
On further reading into the standard, I believe GCC is doing the right thing.
8.5.3p5 is very specific in saying that one can only bind a reference to an
rvalue if the type of the rvalue is of class type. Otherwise, a temporary is
being created.
If this isn't what Howard intended or expected, we need to bring this to the
committee.
--
dgregor at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |SUSPENDED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34022
More information about the Gcc-bugs
mailing list