Option Type | Default Value | #pragma options | C | C++ |
-qoption | tmplparse=no | x |
Syntax
-qtmplparse=no|warn|error
Purpose
This option controls whether parsing and semantic checking are applied to template
definition implementations (function bodies and static data member initializers) or only
to template instantiations. VisualAge C++ can check function bodies and variable
initializers in template definitions and produce error or warning messages.
Notes
Allowable values for suboption are:
no | Do not parse the template implementations. This reduces the number of errors issued in code written for previous versions of VisualAge C++ and predecessor products. This is the default. |
warn | Parses template implementations and issues warning messages for semantic errors. |
error | Treats problems in template implementations as errors, even if the template is not instantiated. |
This option applies to template definitions, not their instantiations. Regardless of the setting of this option, error messages are produced for problems that appear outside implementations. For example, errors found during the parsing or semantic checking of constructs such as the following, always cause error messages:
Specifying Compiler Options for Architecture-Specific, 32-
or 64-bit Compilation
Acceptable Compiler Mode and Processor Architecture Combinations
List of Batch Compiler Options and Their Defaults
Options that Define the Compiler Object Code Produced
Equivalent Batch Compile-Link and Incremental
Build Options