- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
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 Solution
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
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.
Lien copié
7 Réponses
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
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.
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
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
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Uh, oh! This one almost slipped by!
Thanks for reporting it. I filed the bug as CMPLRLLVM-43404.
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Fantastic. Thank you for your meticulous attention to bug reports and surely not the least, for the great compilers.
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
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.
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
fantastic! Thank you.

Répondre
Options du sujet
- S'abonner au fil RSS
- Marquer le sujet comme nouveau
- Marquer le sujet comme lu
- Placer ce Sujet en tête de liste pour l'utilisateur actuel
- Marquer
- S'abonner
- Page imprimable