782 B
782 B
[diff.cpp23.mem]
Annex C (informative) Compatibility [diff]
C.1 C++ and ISO C++ 2023 [diff.cpp23]
C.1.7 [mem]: memory management library [diff.cpp23.mem]
Affected subclause: [c.malloc]
Change: Calling realloc with a non-null pointer and zero size has erroneous behavior.
Rationale: The C standard library does not define this behavior.
Effect on original feature: Valid C++ 2023 code that calls realloc with a non-null pointer and a size of zero is erroneous and may change behavior.