[Bug c++/91212] [8/9/10 Regression] const ignored for ctor arguments within return since r8-2493-g4ce8c5dea53d8073
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Feb 6 17:53:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91212
--- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
(In reply to Jason Merrill from comment #5)
> I think this is a bug in pre-P1825R0 handling of the restriction that the
> first overload resolution fails "if the type of the first parameter of the
> selected constructor is not an rvalue reference to the object's type
> (possibly cv-qualified)".
>
> But that restriction was removed by P1825R0, and I think this demonstrates a
> problem with that.
>
> Testing a patch.
Will this resolve bug 91427 too? Sorry, still assigned to me...
More information about the Gcc-bugs
mailing list