From 0de8c2f8104b74f46e63d0d5d7b9e8fd3f04bb98 Mon Sep 17 00:00:00 2001
From: Patrick Palka <ppalka@redhat.com>
Date: Mon, 11 Oct 2021 12:33:30 -0400
Subject: [PATCH] c++: Add testcase for already-fixed PR [PR102643]

Fixed with r12-1744.

	PR c++/102643

gcc/testsuite/ChangeLog:

	* g++.dg/cpp2a/class-deduction-alias11.C: New test.
---
 gcc/testsuite/g++.dg/cpp2a/class-deduction-alias11.C | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 gcc/testsuite/g++.dg/cpp2a/class-deduction-alias11.C

diff --git a/gcc/testsuite/g++.dg/cpp2a/class-deduction-alias11.C b/gcc/testsuite/g++.dg/cpp2a/class-deduction-alias11.C
new file mode 100644
index 000000000000..87eb3e6525a3
--- /dev/null
+++ b/gcc/testsuite/g++.dg/cpp2a/class-deduction-alias11.C
@@ -0,0 +1,12 @@
+// PR c++/102643
+// { dg-do compile { target c++20 } }
+
+template<class _Tp, class>
+struct vector {
+  typedef int allocator_type;
+  vector(_Tp, allocator_type = allocator_type());
+};
+
+template<class T> using vector_mm = vector<T, int>;
+
+vector_mm v(0);
-- 
GitLab