Message ID | 20180102160302.GC23422@redhat.com |
---|---|
State | New |
Headers | show |
Series | C++ PATCH to add a test for c++/83644 | expand |
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
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); }