https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80356

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Anyway, what is happening is that we have convert_from_reference applied in a
spot where either we do not expect it, or where we should look through the
reference type.
In particular, coerce_template_parms calls convert_template_argument calls
convert_nontype_argument with type REFERENCE_TYPE to FUNCTION_TYPE, but the
corresponding argument is INDIRECT_REF result from convert_from_reference, with
FUNCTION_TYPE.

Reply via email to