From: Patrick Palka Date: Mon, 11 Oct 2021 16:33:30 +0000 (-0400) Subject: c++: Add testcase for already-fixed PR [PR102643] X-Git-Tag: basepoints/gcc-13~3990 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0de8c2f8104b74f46e63d0d5d7b9e8fd3f04bb98;p=thirdparty%2Fgcc.git 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. --- 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 +struct vector { + typedef int allocator_type; + vector(_Tp, allocator_type = allocator_type()); +}; + +template using vector_mm = vector; + +vector_mm v(0);