8.164 --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
8.64 --dllimport_runtime, --no_dllimport_runtime
8.165 --rtti_data, --no_rtti_data
Non-ConfidentialPDF file icon PDF versionARM DUI0472J
Copyright © 2010-2013 ARM. All rights reserved.