https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87150
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Perhaps that
if (conv->kind == ck_rvalue)
conv = next_conversion (conv);
shouldn't be done if (flags & LOOKUP_PREFER_RVALUE) or if
conv->rvaluedness_matches_p? Just a wild guess though, that code dates back
to:
Fri Feb 13 14:55:37 1998 Jason Merrill <[email protected]>
* call.c (standard_conversion): Fix multi-level ptr conversions.
