public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* C++ PATCH to add a test for c++/83644
@ 2018-01-02 16:03 Marek Polacek
  2018-01-02 16:31 ` Nathan Sidwell
  0 siblings, 1 reply; 2+ messages in thread
From: Marek Polacek @ 2018-01-02 16:03 UTC (permalink / raw)
  To: GCC Patches, Jason Merrill, Nathan Sidwell

Another fixed PR, another additional test.

Tested on x86_64-linux, ok for trunk?

2018-01-02  Marek Polacek  <polacek@redhat.com>

	PR c++/83644
	* g++.dg/cpp1z/pr83644.C: New test.

diff --git gcc/testsuite/g++.dg/cpp1z/pr83644.C gcc/testsuite/g++.dg/cpp1z/pr83644.C
index e69de29bb2d..493d8c7cbe4 100644
--- gcc/testsuite/g++.dg/cpp1z/pr83644.C
+++ gcc/testsuite/g++.dg/cpp1z/pr83644.C
@@ -0,0 +1,12 @@
+// PR c++/83644
+// { dg-do compile }
+// { dg-options -std=c++17 }
+
+namespace std {
+template <typename> bool is_invocable_v;
+}
+template <typename F> auto compose(F) {
+  [](auto... objs) noexcept(std::is_invocable_v<decltype(objs)...>){};
+}
+
+auto f() { compose(3); }

	Marek

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: C++ PATCH to add a test for c++/83644
  2018-01-02 16:03 C++ PATCH to add a test for c++/83644 Marek Polacek
@ 2018-01-02 16:31 ` Nathan Sidwell
  0 siblings, 0 replies; 2+ messages in thread
From: Nathan Sidwell @ 2018-01-02 16:31 UTC (permalink / raw)
  To: Marek Polacek, GCC Patches, Jason Merrill

On 01/02/2018 11:03 AM, Marek Polacek wrote:
> Another fixed PR, another additional test.
> 
> Tested on x86_64-linux, ok for trunk?

yes, thanks

nathan
-- 
Nathan Sidwell

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-01-02 16:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-02 16:03 C++ PATCH to add a test for c++/83644 Marek Polacek
2018-01-02 16:31 ` Nathan Sidwell

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).