public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [committed] c++: Add testcase for already fixed PR [PR99209]
@ 2022-09-08 14:57 Patrick Palka
  0 siblings, 0 replies; only message in thread
From: Patrick Palka @ 2022-09-08 14:57 UTC (permalink / raw)
  To: gcc-patches; +Cc: jason, Patrick Palka

This was incidentally fixed by r13-806-g221acd67ca50f8.

	PR c++/99209

gcc/testsuite/ChangeLog:

	* g++.dg/cpp2a/lambda-uneval17.C: New test.
---
 gcc/testsuite/g++.dg/cpp2a/lambda-uneval17.C | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 gcc/testsuite/g++.dg/cpp2a/lambda-uneval17.C

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(); }
+}
-- 
2.37.3.518.g79f2338b37


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

only message in thread, other threads:[~2022-09-08 14:57 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:57 [committed] 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).