Intel® C++ Compiler XE 13.1 User and Reference Guides

check-pointers-dangling, Qcheck-pointers-dangling

Determines whether the compiler checks for dangling pointer references.

IDE Equivalent

Windows: Code Generation > Check Dangling Pointers

Linux: Code Generation > Check Dangling Pointers

OS X: None

Architectures

IA-32, Intel® 64 architecture

Syntax

Linux:

-check-pointers-dangling=keyword

OS X:

None

Windows:

/Qcheck-pointers-dangling:keyword

Arguments

keyword

Specifies what type of dangling pointer checking occurs. Possible values are:

none

Disables checking for dangling pointer references. This is the default.

heap

Checks for dangling pointer references on the heap.

stack

Checks for dangling pointer references on the stack.

all

Checks for dangling pointer references on the heap and the stack.

Default

-check-pointers-dangling=none or /Qcheck-pointers-dangling:none

No checking occurs for dangling pointer references.

Description

This option determines whether the compiler checks for dangling pointer references.

To use this option, you must also specify option -check-pointers (Linux* OS) or /Qcheck-pointers (Windows* OS). You must also have Composer XE 2013 and Parallel Studio XE 2013 (or C++ Studio XE 2013) installed on your system.

Alternate Options

None

See Also


Submit feedback on this help topic