]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c++: add fixed test [PR82794]
authorMarek Polacek <polacek@redhat.com>
Fri, 14 Feb 2025 21:04:41 +0000 (16:04 -0500)
committerMarek Polacek <polacek@redhat.com>
Fri, 14 Feb 2025 21:05:01 +0000 (16:05 -0500)
Fixed by r10-3735.

PR c++/82794

gcc/testsuite/ChangeLog:

* g++.dg/cpp2a/concepts-pr82794.C: New test.

gcc/testsuite/g++.dg/cpp2a/concepts-pr82794.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/cpp2a/concepts-pr82794.C b/gcc/testsuite/g++.dg/cpp2a/concepts-pr82794.C
new file mode 100644 (file)
index 0000000..b84e9ec
--- /dev/null
@@ -0,0 +1,8 @@
+// PR c++/82794
+// { dg-do compile { target c++20 } }
+
+template<typename F, typename G = F>
+concept Foo = true;
+
+template<Foo fun>
+using foo = void;