8.3 --allow_null_this, --no_allow_null_this

Allows and disallows null this pointers in C++.

Usage

Allowing null this pointers gives well-defined behavior when a nonvirtual member function is called on a null object pointer.

Disallowing null this pointers enables the compiler to perform optimizations, and conforms with the C++ standard.

Default

The default is --no_allow_null_this.

Related reference
8.92 --gnu_defaults
Non-ConfidentialPDF file icon PDF versionARM DUI0472J
Copyright © 2010-2013 ARM. All rights reserved.