re PR fortran/54286 (Accepts invalid proc-pointer assignments involving proc-ptr...
authorPaul Thomas <pault@gcc.gnu.org>
Tue, 15 Jan 2013 05:29:01 +0000 (05:29 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Tue, 15 Jan 2013 05:29:01 +0000 (05:29 +0000)
commitfeb6eab0f59640cf19caa7bc09587b0c5a8a371f
tree0d181503dcaf29b44335c9f7bc731c309119ebdb
parent54be5fb321b9ddb64a26f6cef4bfafd8a564b3d0
re PR fortran/54286 (Accepts invalid proc-pointer assignments involving proc-ptr function result)

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.

From-SVN: r195185
gcc/fortran/ChangeLog
gcc/fortran/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/proc_ptr_result_8.f90