-qenum

Category

Floating-point and integer control

@PROCESS

None.

Purpose

Specifies the range of the enumerator constant and enables storage size to be determined.

Syntax

Read syntax diagramSkip visual syntax diagram
                 .-4-.   
>>- -q--enum--=--+-1-+-----------------------------------------><
                 +-2-+   
                 '-8-'   

Defaults

-qenum=4

Usage

Regardless of its storage size, the enumerator's value will be limited by the range that corresponds to value. If the enumerator value exceeds the range specified, a warning message is issued and truncation is performed as necessary.

The range limit and kind type parameter corresponding to each value is as follows:
Table 1. Enumerator sizes and types
Value Valid range of enumerator constant value Kind type parameter
1 -128 to 127 4
2 -32768 to 32767 4
4 -2147483648 to 2147483647 4
8 -9223372036854775808 to 9223372036854775807 8

Related information