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

--- Comment #3 from Andriy Lysnevych <mrlika at gmail dot com> ---
static_assert is not required. This code also crashes:

#include <cassert>

constexpr int ce(int r) {
  assert(r == 3);
  return r;
}

const auto c = ce(3);

Problem is in assert called from constexpr function.

Reply via email to