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++/79294] [7 Regression] ICE in convert_nontype_argument, at cp/pt.c:6812


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

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