]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/56477 (ICE on invalid with pointer assignment to function result)
authorMikael Morin <mikael@gcc.gnu.org>
Sun, 3 Mar 2013 19:58:49 +0000 (19:58 +0000)
committerMikael Morin <mikael@gcc.gnu.org>
Sun, 3 Mar 2013 19:58:49 +0000 (19:58 +0000)
commit1216b4d21d04278222774cd255c4699b656f4fef
treee1121e93e0e7798fa2332cf5a99c3f4226427c14
parentd6a5de161587f701089fdafada742cf275ccd7f8
re PR fortran/56477 (ICE on invalid with pointer assignment to function result)

fortran/
PR fortran/56477
* expr.c (gfc_check_pointer_assign): Avoid NULL pointer dereference.

testsuite/
PR fortran/56477
* gfortran.dg/pointer_check_13.f90: New test.

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