This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/80356] [7 Regression] ICE in convert_nontype_argument, at cp/pt.c:6827
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 07 Apr 2017 20:20:52 +0000
- Subject: [Bug c++/80356] [7 Regression] ICE in convert_nontype_argument, at cp/pt.c:6827
- Auto-submitted: auto-generated
- References: <bug-80356-4@http.gcc.gnu.org/bugzilla/>
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.