public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-73] c++: Add testcase for already fixed PR [PR94508]
@ 2021-04-22 21:50 Patrick Palka
  0 siblings, 0 replies; only message in thread
From: Patrick Palka @ 2021-04-22 21:50 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:4e1aaf32ddf13cc79fcf146d6b62a6e0feb82be0

commit r12-73-g4e1aaf32ddf13cc79fcf146d6b62a6e0feb82be0
Author: Patrick Palka <ppalka@redhat.com>
Date:   Thu Apr 22 17:47:02 2021 -0400

    c++: Add testcase for already fixed PR [PR94508]
    
    We correctly accept this testcase since r11-8144.
    
    gcc/testsuite/ChangeLog:
    
            PR c++/94508
            * g++.dg/cpp2a/concepts-uneval3.C: New test.

Diff:
---
 gcc/testsuite/g++.dg/cpp2a/concepts-uneval3.C | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/gcc/testsuite/g++.dg/cpp2a/concepts-uneval3.C b/gcc/testsuite/g++.dg/cpp2a/concepts-uneval3.C
new file mode 100644
index 00000000000..7fc4065730b
--- /dev/null
+++ b/gcc/testsuite/g++.dg/cpp2a/concepts-uneval3.C
@@ -0,0 +1,9 @@
+// PR c++/94508
+// { dg-do compile { target c++20 } }
+
+template <class T>
+struct A {
+  void f() requires (this, true) { }
+};
+
+template struct A<int>;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-22 21:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-22 21:50 [gcc r12-73] c++: Add testcase for already fixed PR [PR94508] Patrick Palka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).