atomgalaxy/wg21-cust-points

Should validity of noexcept definitions be checked earlier?

Opened this issue · 1 comments

constexpr auto cpo(auto &&x) default { return 2; }

In cases where the declaration is declared unconditionally noexcept(true) should it be ill-formed to declare a generic default implementation that is unconditionally noexcept(false)?

Should this example at least demonstrate that declaring a non-generic override/default that has mismatching noexcept should be diagnosed as ill-formed at point of declaration?