]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/54286 (Accepts invalid proc-pointer assignments involving proc-ptr...
authorPaul Thomas <pault@gcc.gnu.org>
Sun, 13 Jan 2013 08:57:46 +0000 (08:57 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sun, 13 Jan 2013 08:57:46 +0000 (08:57 +0000)
commit899d52c6e21ab11ef716816a433c4c583e0052d1
tree7af314adbc7890bb75e81fb6509028474e01ecd9
parent8816ac704c531d14de865a9f86098edac06554e7
re PR fortran/54286 (Accepts invalid proc-pointer assignments involving proc-ptr function result)

2013-01-13  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/54286
* expr.c (gfc_check_pointer_assign): Ensure that both lvalue
and rvalue interfaces are presented to gfc_compare_interfaces.
Simplify references to interface names by using the symbols
themselves. Call gfc_compare_interfaces with s1 and s2 inter-
changed to overcome the asymmetry of this function. Do not
repeat the check for the presence of s1 and s2.

2013-01-13  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/54286
* gfortran.dg/proc_ptr_result_8.f90 : New test.

From-SVN: r195133
gcc/fortran/ChangeLog
gcc/fortran/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/proc_ptr_result_8.f90 [new file with mode: 0644]