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++/83916] [7/8 Regression] Internal compiler error on valid template code


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

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