public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-2542] c++: Add testcase for already fixed PR [PR99209]
@ 2022-09-08 14:51 Patrick Palka
0 siblings, 0 replies; only message in thread
From: Patrick Palka @ 2022-09-08 14:51 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:f7280b04714c24af2854cf020b6e7b6ad3b7fba8
commit r13-2542-gf7280b04714c24af2854cf020b6e7b6ad3b7fba8
Author: Patrick Palka <ppalka@redhat.com>
Date: Thu Sep 8 10:49:04 2022 -0400
c++: Add testcase for already fixed PR [PR99209]
This was incidentally fixed by r13-806-g221acd67ca50f8.
PR c++/99209
gcc/testsuite/ChangeLog:
* g++.dg/cpp2a/lambda-uneval17.C: New test.
Diff:
---
gcc/testsuite/g++.dg/cpp2a/lambda-uneval17.C | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/gcc/testsuite/g++.dg/cpp2a/lambda-uneval17.C b/gcc/testsuite/g++.dg/cpp2a/lambda-uneval17.C
new file mode 100644
index 00000000000..74e0f876371
--- /dev/null
+++ b/gcc/testsuite/g++.dg/cpp2a/lambda-uneval17.C
@@ -0,0 +1,17 @@
+// PR c++/99209
+// { dg-do compile { target c++20 } }
+
+constexpr char f(...) = delete;
+constexpr decltype(auto) f_adl(auto a) { return f(a); }
+
+namespace A {
+ constexpr char f(auto) { return 'A'; }
+ template<char TemplateParam = f_adl([]{})> void g(char FunctionParam = f_adl([]{})) {
+ char Local = f_adl([]{});
+ }
+}
+
+namespace B {
+ constexpr char f(auto) = delete;
+ void call() { A::g(); }
+}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-09-08 14:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-08 14:51 [gcc r13-2542] c++: Add testcase for already fixed PR [PR99209] 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).