From: Marek Polacek Date: Tue, 2 Jan 2018 17:02:14 +0000 (+0000) Subject: re PR c++/83644 (ICE using type alias from recursive decltype in noexcept or return... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dd2ce397d384339105cfc8f122e52b3c89778d05;p=gcc.git re PR c++/83644 (ICE using type alias from recursive decltype in noexcept or return type) PR c++/83644 * g++.dg/cpp1z/pr83644.C: New test. From-SVN: r256082 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9b88e6c05e3..b8dbee01f92 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -3,6 +3,9 @@ PR c++/81860 * g++.dg/cpp0x/inh-ctor30.C: New test. + PR c++/83644 + * g++.dg/cpp1z/pr83644.C: New test. + 2018-01-01 Paul Thomas PR fortran/83076 diff --git a/gcc/testsuite/g++.dg/cpp1z/pr83644.C b/gcc/testsuite/g++.dg/cpp1z/pr83644.C new file mode 100644 index 00000000000..493d8c7cbe4 --- /dev/null +++ b/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 bool is_invocable_v; +} +template auto compose(F) { + [](auto... objs) noexcept(std::is_invocable_v){}; +} + +auto f() { compose(3); }