------- Comment #4 from dominiq at lps dot ens dot fr 2008-09-20 07:32 ------- With the patch in comment #3, I get
FAIL: gfortran.dg/entry_1.f90 -O0 (test for excess errors) ... FAIL: gfortran.dg/entry_1.f90 -Os (test for excess errors) The failure is: /opt/gcc/_gcc_clean/gcc/testsuite/gfortran.dg/entry_1.f90:16.18: call indirectb (bar) 1 Error: Reference to ENTRY 'bar' at (1) is recursive, but procedure 'foo' is not declared as RECURSIVE -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37583