This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C++ PATCH for c++/25950 (DR391, binding references to temporaries)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]