From 10275acc659f99c5fa292236876dee4dcf063d93 Mon Sep 17 00:00:00 2001 From: David Spickett Date: Fri, 5 Apr 2024 09:11:59 +0000 Subject: [PATCH] [Fortran/gfortran] Disable test that requires -std=f2008 Since https://github.com/llvm/llvm-project/pull/87501 flang reports the correct error code which causes this test to fail loudly. It always was failing because the test does not work with -std=f2018 which is flang's default (and only) option. I've confirmed that with gfortran-13 the test passes with -std=f2008 and fails (without output matching flang's) with -std=f2018. --- Fortran/gfortran/regression/DisabledFiles.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Fortran/gfortran/regression/DisabledFiles.cmake b/Fortran/gfortran/regression/DisabledFiles.cmake index bc1e9255c..75c791148 100644 --- a/Fortran/gfortran/regression/DisabledFiles.cmake +++ b/Fortran/gfortran/regression/DisabledFiles.cmake @@ -1322,6 +1322,9 @@ file(GLOB FAILING_FILES CONFIGURE_DEPENDS pr91564.f90 rank_3.f90 + # Requires behaviour specific to -std=f2008 and fails with -std=f2018. + finalize_38a.f90 + # Tests that use -std=... to enable checks that no longer apply in modern Fortran. # Module variable with derived type default initialization requires explicit SAVE default_initialization_1.f90