Developer Guide and Reference

Contents

Zc

Lets you specify ANSI C standard conformance for certain language features.

Syntax

Linux:
None
macOS:
None
Windows:
/Zc:
arg
[,
arg
]
Arguments
arg
Is the language feature for which you want standard conformance. Possible values are:
forScope[-]
forScope
tells the compiler to use the standard behavior for initializers of for loops.
forScope-
disables this setting.
wchar_t[-]
wchar_t
tells the compiler that wchar_t is a native data type.
wchar_t-
disables this setting.
auto[-]
auto
tells the compiler to comply with the new standard meaning for auto.
auto-
disables this setting.
Default
/Zc:forScope,wchar_t
The compiler uses the standard behavior for initializers of for loops and it assumes that
wchar_t
is a native data type.
Description
This option lets you specify ANSI C standard conformance for certain language features.
If you do not want the default behavior for one or more of the settings, you must specify the negative form of the setting. For example, if you do not want the
forScope
or
wchar_t
default behavior, you should specify
/Zc:forScope-,wchar_t-
.
The Microsoft* option
/Zc:rvalueCast
is also supported.
Alternate Options
None

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804