------- 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

Reply via email to