resolve.c: Prevent segfault on illegal input.
authorAndre Vehreschild <vehre@gmx.de>
Mon, 16 Mar 2015 10:29:59 +0000 (11:29 +0100)
committerAndre Vehreschild <vehre@gcc.gnu.org>
Mon, 16 Mar 2015 10:29:59 +0000 (11:29 +0100)
commit6c25f7962556e2217d5070720ac879c40063209a
tree0f32e47ce192b9f995b5547452e884643a7d6e16
parent9e25209f3a29dd1c8ee33c848a6a2b66e4c06d48
resolve.c: Prevent segfault on illegal input.

gcc/fortran/ChangeLog:

2015-03-16  Andre Vehreschild  <vehre@gmx.de>

* resolve.c: Prevent segfault on illegal input.

gcc/testsuite/ChangeLog:

2015-03-16  Andre Vehreschild  <vehre@gmx.de>

* gfortran.dg/pointer_2.f90: New test.

From-SVN: r221455
gcc/fortran/ChangeLog
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pointer_2.f90 [new file with mode: 0644]