This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH for c++/25950 (DR391, binding references to temporaries)
- From: Ian Lance Taylor <iant at google dot com>
- To: Jason Merrill <jason at redhat dot com>
- Cc: gcc-patches List <gcc-patches at gcc dot gnu dot org>, Nathan Sidwell <nathan at codesourcery dot com>
- Date: 24 Oct 2007 10:13:51 -0700
- Subject: Re: C++ PATCH for c++/25950 (DR391, binding references to temporaries)
- References: <471EBF98.7090401@redhat.com>
Jason Merrill <jason@redhat.com> writes:
> PR c++/25950 requests that we implement DR391; this is the most
> commonly reported issue in the C++ compiler, so it seemed worth fixing
> to me. Basically, people want to be able to bind a temporary of a
> class with an uncallable copy constructor to a const reference; C++98
> doesn't allow this, but DR391 says that was a bug in the standard, and
> requires compilers to always bind references directly to temporaries
> of compatible class type.
Thanks, and: this change needs to be in the release notes.
Ian