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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Testcase for the decltype(nullptr) case:
constexpr decltype(nullptr) bar (bool x) { if (x) throw 1; return nullptr; }
template <decltype(nullptr) I = bar (true)>
constexpr void foo () {}

consteval {
  foo <> ();
}

Reply via email to