Skip to content

Commit 0bbf038

Browse files
authored
[Fortran] disable pointer_check_11.f90 which exhibits UB (#232)
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.
1 parent 1cc11b0 commit 0bbf038

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Fortran/gfortran/regression/DisabledFiles.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,6 +1042,7 @@ file(GLOB FAILING_FILES CONFIGURE_DEPENDS
10421042
namelist_96.f90 # real data for integer NAMELIST input
10431043
no_unit_error_1.f90
10441044
pointer_check_10.f90
1045+
pointer_check_11.f90 # test exhibits UB, sometimes at O3 it hangs forever
10451046
pointer_remapping_6.f08
10461047
unpack_bounds_1.f90
10471048

0 commit comments

Comments
 (0)