Implicit integer type declarations
The use of an implicit int in a declaration, as shown in Figure 1, does not comply with Standard C++. If you need to comply with the Standard C++, specify the type of every function and variable. Otherwise, use the LANGLVL(IMPLICITINT) option to compile code containing declarations of implicit integer types.
Figure 1. Declaration of implicit integer
type.
const i; // previously meant const int i
main() { } // previously returned int
As of z/OS® V1R2 C++, the following code is no longer valid:
inline f() {
return 0;
}