[Bug c++/90101] [P0732] Error using non-type template parameter in a template template argument

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jul 19 07:29:00 GMT 2019


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

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Jul 19 07:29:15 2019
New Revision: 273592

URL: https://gcc.gnu.org/viewcvs?rev=273592&root=gcc&view=rev
Log:
        PR c++/90101 - dependent class non-type parameter.

We shouldn't complain that a dependent type is incomplete.

        * pt.c (invalid_nontype_parm_type_p): Check for dependent class type.

Added:
    trunk/gcc/testsuite/g++.dg/cpp2a/nontype-class21.C
    trunk/gcc/testsuite/g++.dg/cpp2a/nontype-class22.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c


More information about the Gcc-bugs mailing list