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

--- Comment #18 from Hana Dusíková <hanicka at hanicka dot net> ---
(In reply to Jakub Jelinek from comment #16)
> So, the paper added also the new case to
> https://eel.is/c++draft/expr.const#10.27
> but
> https://eel.is/c++draft/expr.new#8.5
> has not been changed and still says that say new int[-1] in constexpr
> function is ill-formed.  So, when should one expect
> std::bad_array_new_length() to be actually thrown (except when throwing it
> manually)?

I don't think`-1` doesn't make it "potentially-evaluated core constant
expression".

Reply via email to