https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93668
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org, | |redi at gcc dot gnu.org --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- No, during constexpr evaluation if UB is detected the constexpr evaluation should fail. The question is where exactly does the C++ standard say it is UB. I found http://eel.is/c++draft/expr.delete#2 but for the non-array delete it talks about previous new-expression, which even the array one is. So is it instead the mismatch of types (i.e. http://eel.is/c++draft/expr.delete#3)?