[gcc(refs/users/marxin/heads/marxin-gcc-benchmark-branch)] c++: Add new test [PR88819]

Martin Liska marxin@gcc.gnu.org
Mon Mar 30 10:59:56 GMT 2020


https://gcc.gnu.org/g:54947e4db0a98a9190bab263e6ae539065ac52c5

commit 54947e4db0a98a9190bab263e6ae539065ac52c5
Author: Marek Polacek <polacek@redhat.com>
Date:   Wed Feb 12 11:20:07 2020 -0500

    c++: Add new test [PR88819]
    
    Fixed by r10-1975-g59febe0ece37bedab7f42ae51b9f2b7a372d2950.
    
    2020-02-12  Marek Polacek  <polacek@redhat.com>
    
            PR c++/88819
            * g++.dg/cpp2a/nontype-class32.C: New test.

Diff:
---
 gcc/testsuite/ChangeLog                      |  5 +++++
 gcc/testsuite/g++.dg/cpp2a/nontype-class32.C | 10 ++++++++++
 2 files changed, 15 insertions(+)

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  <polacek@redhat.com>
+
+	PR c++/88819
+	* g++.dg/cpp2a/nontype-class32.C: New test.
+
 2020-02-12  Marek Polacek  <polacek@redhat.com>
 
 	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<typename T, template<T> class TT, class R = TT <0>> struct A 
+{
+  template<R> struct B {};
+};
+template<int> struct C {};
+
+A<int, C, C<0>> a;


More information about the Gcc-cvs mailing list