Commit dd2ce397 by Marek Polacek Committed by Marek Polacek

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
parent e698996f
......@@ -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 <pault@gcc.gnu.org>
PR fortran/83076
......
// 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); }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment