Skip to content

Commit 8ef1ef8

Browse files
committed
configury: harden Fortran ASYNCHRONOUS check
LLVM 18 supports the ASYNCHRONOUS keyword in an interface, but not in a subroutine (!) so test both in order to avoid a false positive that will lead to compilation failure. Signed-off-by: Gilles Gouaillardet <[email protected]>
1 parent 8b4237c commit 8ef1ef8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

config/ompi_fortran_check_asynchronous.m4

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ dnl University of Stuttgart. All rights reserved.
1111
dnl Copyright (c) 2004-2005 The Regents of the University of California.
1212
dnl All rights reserved.
1313
dnl Copyright (c) 2010-2014 Cisco Systems, Inc. All rights reserved.
14+
dnl Copyright (c) 2024 Research Organization for Information Science
15+
dnl and Technology (RIST). All rights reserved.
1416
dnl $COPYRIGHT$
1517
dnl
1618
dnl Additional copyrights may follow
@@ -35,6 +37,10 @@ SUBROUTINE binky(buf)
3537
REAL, DIMENSION(*), ASYNCHRONOUS :: buf
3638
END SUBROUTINE
3739
END INTERFACE
40+
CONTAINS
41+
SUBROUTINE wookie(buf)
42+
REAL, DIMENSION(*), ASYNCHRONOUS :: buf
43+
END SUBROUTINE
3844
END MODULE asynch_mod]])],
3945
[AS_VAR_SET(asynchronous_var, yes)],
4046
[AS_VAR_SET(asynchronous_var, no)])

0 commit comments

Comments
 (0)