Intel® C++ Compiler 16.0 User and Reference Guide

check-pointers-dangling, Qcheck-pointers-dangling

Determines whether the compiler checks for dangling pointer references.

Architecture Restrictions

Not available on Intel® 64 architecture targeting the Intel® Xeon Phi™ coprocessor x100 product family (formerly code name Knights Corner), on IA-32 architecture targeting Intel® Graphics Technology, or on Intel® 64 architecture targeting Intel® Graphics Technology

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 the [Q]check-pointers option.

This pointer checker feature requires installation of another product. For more information, see Feature Requirements.

IDE Equivalent

Visual Studio: Code Generation > Check Dangling Pointers

Eclipse: Code Generation > Check Dangling Pointers

Xcode: None

Alternate Options

None

See Also