From: Marek Polacek Date: Wed, 12 Feb 2020 16:20:07 +0000 (-0500) Subject: c++: Add new test [PR88819] X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=54947e4db0a98a9190bab263e6ae539065ac52c5;p=gcc.git c++: Add new test [PR88819] Fixed by r10-1975-g59febe0ece37bedab7f42ae51b9f2b7a372d2950. 2020-02-12 Marek Polacek PR c++/88819 * g++.dg/cpp2a/nontype-class32.C: New test. --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 968b903411d..e2f590b48f4 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2020-02-12 Marek Polacek + + PR c++/88819 + * g++.dg/cpp2a/nontype-class32.C: New test. + 2020-02-12 Marek Polacek PR c++/93684 - ICE-on-invalid with broken attribute. diff --git a/gcc/testsuite/g++.dg/cpp2a/nontype-class32.C b/gcc/testsuite/g++.dg/cpp2a/nontype-class32.C new file mode 100644 index 00000000000..6a4dac5c90e --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp2a/nontype-class32.C @@ -0,0 +1,10 @@ +// PR c++/88819 +// { dg-do compile { target c++2a } } + +template class TT, class R = TT <0>> struct A +{ + template struct B {}; +}; +template struct C {}; + +A> a;