PR c++/90101 - dependent class non-type parameter.
authorJason Merrill <jason@redhat.com>
Fri, 19 Jul 2019 07:29:15 +0000 (03:29 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 19 Jul 2019 07:29:15 +0000 (03:29 -0400)
commitdaaa6fcc70ffe66bd56f5819ad4ee78fecd54bb6
tree6e8fee3e1761ba5c948cb1a175671dd417c46ab3
parent59febe0ece37bedab7f42ae51b9f2b7a372d2950
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.

From-SVN: r273592
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp2a/nontype-class21.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp2a/nontype-class22.C [new file with mode: 0644]