templateDefImpls Language Option (C++)

Syntax: Default:
lang(templateDefImpls,dontParse)
lang(templateDefImpls, parseWithWarnings)
lang(templateDefImpls, parseWithErrors)
lang(templateDefImpls, parseWithWarnings)

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.

By default, VisualAge C++ parses template implementations and issues warning messages for semantic errors. Error messages are issued for errors found while parsing.

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:

Set templateDefImpls to dontParse to reduce the number of errors issued in code written for previous versions of VisualAge C++ and predecessor products.

Set templateDefImpls to parseWithErrors to treat problems in template implementations as errors, even if the template is not instantiated.



Incremental C++ Builds
Configuration Files


Set Build Options
Build


Language Options for C++
Build Options for Compliance With the C++ Standard
Build Options for Compatibility with Old C++ Compilers