This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PR fortran/60091, patch] - Misleading error messages in rank-2 pointer assignment to rank-1 target


The PR rightly complains about bad error messages for invalid pointer
assignments.  I've tried to adjust the logic slightly so that we now
print error messages that should explain more clearly what is wrong.

This required adjustment of 2 testcases, one of which also had an
incorrect comment.

OK for trunk?

Thanks,
Harald

2019-03-07  Harald Anlauf  <anlauf@gmx.de>

	PR fortran/60091
	* expr.c (gfc_check_pointer_assign): Correct and improve error
	messages for invalid pointer assignments.

2019-03-07  Harald Anlauf  <anlauf@gmx.de>

	PR fortran/60091
	* gfortran.dg/pointer_remapping_3.f08: Adjust error messages.
	* gfortran.dg/pointer_remapping_7.f90: Adjust error message.

Attachment: patch-pr60091
Description: Text document

Attachment: patch-pr60091-testcases
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]