7.147 --rtti, --no_rtti

Controls support for the RTTI features dynamic_cast and typeid in C++.

Usage

Use --no_rtti to disable source-level RTTI features such as dynamic_cast.

Note

You are permitted to use dynamic_cast without --rtti in cases where RTTI is not required, such as dynamic cast to an unambiguous base, and dynamic cast to (void *). If you try to use dynamic_cast without --rtti in cases where RTTI is required, the compiler generates an error.

Mode

These options are effective only if the source language is C++.

Default

The default is --rtti.
Related reference
7.148 --rtti_data, --no_rtti_data
Non-ConfidentialPDF file icon PDF versionARM DUI0375F
Copyright © 2007, 2008, 2011, 2012, 2014 ARM. All rights reserved.