https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92956
--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> --- -Wstringop-overflow is a C-family only option that shouldn't be enabled for Fortran. It took some effort to make it work that way (see pr80545 for the background) and there's no test for it so either the logic put in there still isn't correct or something has regressed. I wouldn't be surprised if the problem was still unresolved in LTO builds (e.g., pr92952) but this doesn't look like like an LTO test. I don't see this test in my builds or on gcc-testresults and compiling it by hand gives the error below. What do I need to do to build it? /ssd/src/gcc/svn/libgomp/testsuite/libgomp.fortran/examples-4/async_target-2.f90:25:7: 25 | use omp_lib, only: omp_is_initial_device | 1 Fatal Error: Cannot open module file ‘omp_lib.mod’ for reading at (1): No such file or directory compilation terminated. Can you include the strlen dump for the test (-fdump-tree-strlen)?