This is the mail archive of the gcc-bugs@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]

[Bug c++/80356] [7 Regression] ICE in convert_nontype_argument, at cp/pt.c:6827


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.

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