This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/79294] [7 Regression] ICE in convert_nontype_argument, at cp/pt.c:6812
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 03 Feb 2017 19:44:53 +0000
- Subject: [Bug c++/79294] [7 Regression] ICE in convert_nontype_argument, at cp/pt.c:6812
- Auto-submitted: auto-generated
- References: <bug-79294-4@http.gcc.gnu.org/bugzilla/>
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