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

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Feb 3 19:45:00 GMT 2017


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

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Feb  3 19:44:21 2017
New Revision: 245168

URL: https://gcc.gnu.org/viewcvs?rev=245168&root=gcc&view=rev
Log:
        PR c++/79294 - ICE with invalid template argument

        * pt.c (convert_nontype_argument_function): Check value-dependence.
        (convert_nontype_argument): Don't check it here for function ptrs.

Added:
    trunk/gcc/testsuite/g++.dg/template/error57.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c


More information about the Gcc-bugs mailing list