This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/3390: Can't pass a reference to temporary objects
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, prewett at pacific dot mps dot ohio-state dot edu
- Subject: Re: c++/3390: Can't pass a reference to temporary objects
- From: aoliva at gcc dot gnu dot org
- Date: 26 Jun 2001 20:33:00 -0000
Synopsis: Can't pass a reference to temporary objects
State-Changed-From-To: open->closed
State-Changed-By: aoliva
State-Changed-When: Tue Jun 26 13:32:58 2001
State-Changed-Why:
The C++ Standard allows temporaries to be bound to const references, but not to non-const references. GCC just follows the Standard.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3390&database=gcc