4.1.5 Option to process in strict accordance with ANSI standard

If the -ansi option is specified to CC-RL, it will perform processing in strict accordance with the ANSI standard. The differences between when the -ansi option is specified and when not specified are as follows.

Table 4.10

Processing When -ansi Option Strictly Conforming to Language Specifications is Specified

Item

With -ansi Specification

Without -ansi Specification

_Bool type

long long type

An error occurs.

Specification is allowed.

# line number

An error occurs.

Treated in same manner as "#line line number".

Type conversion

An error occurs if a function pointer is assigned to a void pointer.

Outputs warning message and permits.