This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/70353] static_assert + assert + c++14 crashes GCC
- From: "mrlika at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 22 Mar 2016 19:39:35 +0000
- Subject: [Bug c++/70353] static_assert + assert + c++14 crashes GCC
- Auto-submitted: auto-generated
- References: <bug-70353-4 at http dot gcc dot gnu dot org/bugzilla/>
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.