https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94104
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:58e7732a2feddf475e72b232bf16494d84a41acf commit r13-3946-g58e7732a2feddf475e72b232bf16494d84a41acf Author: José Rui Faustino de Sousa <jrfso...@gmail.com> Date: Wed Nov 9 21:30:25 2022 +0100 Fortran: diagnostics for actual arguments to pointer dummy arguments [PR94104] Error message improvement. In Fortran 2008 actual procedure arguments associated with a pointer, intent(in) attribute, dummy argument can also have the target attribute, not just pointer. gcc/fortran/ChangeLog: PR fortran/94104 * interface.cc (gfc_compare_actual_formal): Improve error message dependent on Fortran standard level. gcc/testsuite/ChangeLog: PR fortran/94104 * gfortran.dg/parens_2.f90: Adjust to improved error message. * gfortran.dg/PR94104a.f90: New test. * gfortran.dg/PR94104b.f90: New test.