Skip to content

Commit d5a53ec

Browse files
committed
[Fortran/gfortran] Disable bounds-check tests.
The tests started failing at -O2 after llvm/llvm-project#121544 Flang inlines hlfir.assign with hlfir.expr RHSs after the change, so the runtime is not called, and it does not make the bounds checks. Related feature request: https://github.com/orgs/llvm/projects/12?pane=issue&itemId=29048733
1 parent 3778bdf commit d5a53ec

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Fortran/gfortran/regression/DisabledFiles.cmake

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1627,8 +1627,16 @@ file(GLOB FAILING_FILES CONFIGURE_DEPENDS
16271627
# Tests looking for runtime errors (e.g., bound checks). Correctly
16281628
# caught by flang runtime, but not caught with Flang optimizations,
16291629
# e.g. due to intrinsics inlining. These can pass with -O0:
1630+
all_bounds_1.f90
16301631
cshift_bounds_3.f90
16311632
cshift_bounds_4.f90
1633+
maxloc_bounds_1.f90
1634+
maxloc_bounds_2.f90
1635+
maxloc_bounds_4.f90
1636+
maxloc_bounds_8.f90
1637+
maxloc_bounds_7.f90
1638+
pack_bounds_1.f90
1639+
spread_bounds_1.f90
16321640

16331641
# Bad test, assigning an 11 elements array to a 12 elements array.
16341642
transfer_array_intrinsic_4.f90

0 commit comments

Comments
 (0)