Fwd: [Bug fortran/54286] [4.8 Regression] Accepts invalid proc-pointer assignments involving proc-ptr function result
Paul Richard Thomas
paul.richard.thomas@gmail.com
Tue Jan 15 05:32:00 GMT 2013
Dear,
I missed the null interface case in the fix for PR54286. The fix is
'obvious' and 'safe'.
Thanks to Dominique for identifying the problem and the fix.
Cheers
Paul
Author: pault
Date: Tue Jan 15 05:29:01 2013
New Revision: 195185
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=195185
Log:
2013-01-15 Paul Thomas <pault@gcc.gnu.org>
PR fortran/54286
* expr.c (gfc_check_pointer_assign): Check for presence of
's2' before using it.
2013-01-15 Paul Thomas <pault@gcc.gnu.org>
PR fortran/54286
* gfortran.dg/proc_ptr_result_8.f90 : Add module 'm' to check
case where interface is null.
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/expr.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gfortran.dg/proc_ptr_result_8.f90
More information about the Fortran
mailing list