Files
2025-10-25 03:02:53 +03:00

28 lines
782 B
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[diff.cpp23.mem]
# Annex C (informative) Compatibility [[diff]](./#diff)
## C.1 C++ and ISO C++ 2023 [[diff.cpp23]](diff.cpp23#mem)
### C.1.7 [[mem]](mem "20Memory management library"): memory management library [diff.cpp23.mem]
[1](#1)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/compatibility.tex#L278)
**Affected subclause:** [[c.malloc]](c.malloc)
**Change:** Calling realloc with a non-null pointer and zero size
has erroneous behavior[.](#1.sentence-1)
**Rationale:** The C standard library does not define this behavior[.](#1.sentence-2)
**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[.](#1.sentence-3)