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

--- Comment #17 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)?

Only when you allocate size bigger than a limit of allocation.

Reply via email to