From 6fab870b704fa4cf57e2c49590f9cdddb744171b Mon Sep 17 00:00:00 2001 From: Tom Eccles Date: Tue, 15 Apr 2025 14:38:22 +0000 Subject: [PATCH 1/2] [Fortran] disable pointer_check_11.f90 This test calls an empty subroutine with a null pointer as an argument. In gfortran it is hoped that a flag will detect this and produce an error. Flang does not perform any such analysis, and so on some machines when optimization is enabled, this test never terminates. I don't think this is a flang bug as such because the input code is doing undefined behaviour. --- Fortran/gfortran/regression/DisabledFiles.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/Fortran/gfortran/regression/DisabledFiles.cmake b/Fortran/gfortran/regression/DisabledFiles.cmake index c1545d7811..2e17cf6c01 100644 --- a/Fortran/gfortran/regression/DisabledFiles.cmake +++ b/Fortran/gfortran/regression/DisabledFiles.cmake @@ -1046,6 +1046,7 @@ file(GLOB FAILING_FILES CONFIGURE_DEPENDS namelist_96.f90 # real data for integer NAMELIST input no_unit_error_1.f90 pointer_check_10.f90 + pointer_check_11.f90 pointer_remapping_6.f08 unpack_bounds_1.f90 From 23289c93fd26e67ba3270203d321956226f91349 Mon Sep 17 00:00:00 2001 From: Tom Eccles Date: Tue, 15 Apr 2025 16:56:39 +0000 Subject: [PATCH 2/2] Add comment --- Fortran/gfortran/regression/DisabledFiles.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Fortran/gfortran/regression/DisabledFiles.cmake b/Fortran/gfortran/regression/DisabledFiles.cmake index 2e17cf6c01..54e12e3a2d 100644 --- a/Fortran/gfortran/regression/DisabledFiles.cmake +++ b/Fortran/gfortran/regression/DisabledFiles.cmake @@ -1046,7 +1046,7 @@ file(GLOB FAILING_FILES CONFIGURE_DEPENDS namelist_96.f90 # real data for integer NAMELIST input no_unit_error_1.f90 pointer_check_10.f90 - pointer_check_11.f90 + pointer_check_11.f90 # test exhibits UB, sometimes at O3 it hangs forever pointer_remapping_6.f08 unpack_bounds_1.f90