E.g. for
a.cpp:10:15: error: static assertion expression is not an integral constant expression
10 | static_assert(foo() == 0);
| ^~~~~~~~~~
a.cpp:5:20: note: cannot allocate array; evaluated array bound 1048577 exceeds the limit (1048576); use '-fconstexpr-steps' to
increase this limit
5 | auto p = new int[1'048'577];
| ^
a.cpp:10:15: note: in call to 'foo()'
10 | static_assert(foo() == 0);
E.g. for
we emit
It would be nice to