[Patch, fortran] PR fortran/94104 - Request for diagnostic improvement

José Rui Faustino de Sousa jrfsousa@gmail.com
Mon Jun 14 22:41:05 GMT 2021


Hi all!

Proposed patch to:

Bug 94104 - Request for diagnostic improvement

Patch tested only on x86_64-pc-linux-gnu.

Error message improvement. In Fortran 2008 actual arguments to 
procedures having a pointer, with intent attribute in, formal argument 
can also have the target attribute not just pointer.

Thank you very much.

Best regards,
José Rui

Fortran: error message improvement.

	PR fortran/94104

gcc/fortran/ChangeLog:

	* interface.c (gfc_compare_actual_formal): improve error message.

gcc/testsuite/ChangeLog:

	* gfortran.dg/parens_2.f90: update regex.
	* gfortran.dg/PR94104a.f90: New test.
	* gfortran.dg/PR94104b.f90: New test.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PR94104.patch
Type: text/x-patch
Size: 3993 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/fortran/attachments/20210614/6849d662/attachment-0001.bin>


More information about the Fortran mailing list