ifort 2022 (linux WSL) cannot compile the following code snippet.
Is the compiler error correct? Is line continuation disallowed in this case?
integer, allocatable :: A(:)
A = [integer &
:: 0]
end
1 解決方案
Considering the Fortran standard document,
- Re: "Is the compiler error correct?" - no. Intel Fortran does not conform by failing to process the continued statement.
- Re: "Is line continuation disallowed in this case?" - no. Per the standard, the shown continuation is allowed.
連結已複製
7 回應
Considering the Fortran standard document,
- Re: "Is the compiler error correct?" - no. Intel Fortran does not conform by failing to process the continued statement.
- Re: "Is line continuation disallowed in this case?" - no. Per the standard, the shown continuation is allowed.
