https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119716
--- Comment #3 from qinzhao at gcc dot gnu.org --- (In reply to Jakub Jelinek from comment #2) > This is invalid testcase. > E.g. replace return __builtin_dynamic_object_size (p, 1); with return 0; > and try both gcc -fsanitize=undefined -g -O0 or clang -fsanitize=undefined > -g -O0, both will diagnose it. > Even when C2Y allows NULL + 0, it doesn't allow NULL + sizeof (size_t). oh, Yes, do we need to fix the compiler segmentation fault for such invalid testcase? I assume Not.