- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
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 솔루션
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
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 응답
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
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.
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
A temporary workaround until a compiler resolution might be to move the double colon separator to the previous line:
integer, allocatable :: A(:)
A = [ integer :: &
& 0 ]
end
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
Uh, oh! This one almost slipped by!
Thanks for reporting it. I filed the bug as CMPLRLLVM-43404.
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
Fantastic. Thank you for your meticulous attention to bug reports and surely not the least, for the great compilers.
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
We have a fix in the pipeline for this bug. The fix will appear in the 2024.2.0 ( Update 2). This is roughly due end of June or in July 2024.
