Why GCC doesn't optimize out deletion of null pointers in C++? – stackoverflow.com

Consider a simple program: int main() { int* ptr = nullptr; delete ptr; } With GCC (7.2), there is a call instruction regarding to operator delete in the resulting program. With Clang and Intel ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Why GCC doesn't optimize out deletion of null pointers in C++? – stackoverflow.com"