http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46990
--- Comment #5 from janus at gcc dot gnu.org 2010-12-18 16:27:10 UTC --- (In reply to comment #4) > Here is a preliminary patch. Hope I got the logic right ... The patch in comment #4 triggers two testsuite failures: FAIL: gfortran.dg/dummy_procedure_4.f90 -O (test for errors, line 28) FAIL: gfortran.dg/proc_ptr_30.f90 -O (test for errors, line 25) Both of them come from PR46067. I think they are actually valid Fortran and it's wrong to expect an error message.