From: Patrick Palka <ppalka@redhat.com>
To: gcc-patches@gcc.gnu.org
Cc: jason@redhat.com, Patrick Palka <ppalka@redhat.com>
Subject: [committed] c++: Add testcase for already fixed PR [PR99209]
Date: Thu, 8 Sep 2022 10:57:16 -0400 [thread overview]
Message-ID: <20220908145716.268510-1-ppalka@redhat.com> (raw)
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
reply other threads:[~2022-09-08 14:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220908145716.268510-1-ppalka@redhat.com \
--to=ppalka@redhat.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=jason@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).