[committed] c++: Add new test [PR88819]
diff mbox series

Message ID 20200212163003.434238-1-polacek@redhat.com
State New
Headers show
Series
  • [committed] c++: Add new test [PR88819]
Related show

Commit Message

Marek Polacek Feb. 12, 2020, 4:30 p.m. UTC
Fixed by r10-1975-g59febe0ece37bedab7f42ae51b9f2b7a372d2950.

2020-02-12  Marek Polacek  <polacek@redhat.com>

	PR c++/88819
	* g++.dg/cpp2a/nontype-class32.C: New test.
---
 gcc/testsuite/ChangeLog                      |  5 +++++
 gcc/testsuite/g++.dg/cpp2a/nontype-class32.C | 10 ++++++++++
 2 files changed, 15 insertions(+)
 create mode 100644 gcc/testsuite/g++.dg/cpp2a/nontype-class32.C


base-commit: e428a9cf85a8bdde9d031a215e10bd96eb3b789a

Patch
diff mbox series

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;