Re: [patch, fortran] Emit error for recursive I/O

Steve Kargl <[email protected]>
Newsgroups gmane.comp.gcc.patches,gmane.comp.gcc.fortran
Message-ID <[email protected]>
On Tue, Jan 06, 2026 at 07:34:57AM +0100, Thomas Koenig wrote:
> Committed as
> 
> https://gcc.gnu.org/g:e32c3fb4311bcaf767a87934d6495f05fbae7bc9
> 
> Thanks, Jerry and Steve!
> 

Just bootstrapped and tested the committed patch.
There's a regressio on FreeBSD.  The new testcase
needs

diff --git a/gcc/testsuite/gfortran.dg/pr119136.f90 b/gcc/testsuite/gfortran.dg/pr119136.f90
index e579083b9b6..206d4e3f90f 100644
--- a/gcc/testsuite/gfortran.dg/pr119136.f90
+++ b/gcc/testsuite/gfortran.dg/pr119136.f90
@@ -1,4 +1,5 @@
 ! { dg-do run }
+! { dg-options "-pthread" { target { x86_64-*-freebsd* } } }
 ! { dg-shouldfail "Recursive" }
   print *, foo_io()


-- 
Steve
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.