[Bug c++/83644] ICE using type alias from recursive decltype in noexcept or return type

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jan 2 15:49:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83644

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Reduced to:
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); }


More information about the Gcc-bugs mailing list