Skip to content

Fix: make an elemental subprogram impure so flang builds fpm - #1318

Open
rouson wants to merge 1 commit into
mainfrom
compile-with-flang
Open

Fix: make an elemental subprogram impure so flang builds fpm#1318
rouson wants to merge 1 commit into
mainfrom
compile-with-flang

Conversation

@rouson

@rouson rouson commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

This commit fixes #1288 by fixing a violation of the Fortran 2023 standard that LLVM flang 23.1.0 rejects. The commit adds the impure attribute to an elemental subroutine because one of the subroutine's intent(in) dummy arguments appears as the to argument in a move_alloc call.

This commit fixes a violation of the Fortran 2023 standard that
is rejected by the LLVM flang 23.1.0 compiler.  The commit declares
an elemental subroutine as `impure` because one of the subroutine's
`intent(in)` dummy arguments appears as the `to` argument in a
`move_alloc` call.
@rouson
rouson requested a review from perazz September 3, 2026 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compiling with LLVM Flang fails

1 participant