[Bug c++/83916] [7/8 Regression] Internal compiler error on valid template code
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Mar 14 19:17:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83916
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Mar 14 19:17:03 2018
New Revision: 258533
URL: https://gcc.gnu.org/viewcvs?rev=258533&root=gcc&view=rev
Log:
PR c++/83916 - ICE with template template parameters.
* pt.c (convert_template_argument): Don't substitute into type of
non-type parameter if we don't have enough arg levels.
(unify): Likewise.
Added:
trunk/gcc/testsuite/g++.dg/template/ttp31.C
trunk/gcc/testsuite/g++.dg/template/ttp32.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
More information about the Gcc-bugs
mailing list