https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88737
--- Comment #10 from uecker at gcc dot gnu.org --- I would say it is rather likely that C will get something like this at some point. BTW: Any use of the pointer value after free as in comment #2 is UB.