https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65350
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Clang gets it way wrong (-1): my operator new[](18446744073709551615) caught unkown exception ICC gets it right though: std::bad_array_new_length So I think GCC ordering is just wrong.