re PR libfortran/77663 (libgfortran/caf/single.c: three minor problems and a lost...
authorAndre Vehreschild <vehre@gcc.gnu.org>
Sat, 1 Oct 2016 14:00:57 +0000 (16:00 +0200)
committerAndre Vehreschild <vehre@gcc.gnu.org>
Sat, 1 Oct 2016 14:00:57 +0000 (16:00 +0200)
commit0f0565b1438c82118f1f31f6880c509c472c3bf5
treeeff176f1e251fa98b5827cd362cc3acbcca23c7a
parenteb647b80ba1a0ab2d9b879cbfdd08cd6805e75c3
re PR libfortran/77663 (libgfortran/caf/single.c: three minor problems and a lost token)

gcc/testsuite/ChangeLog:

2016-10-01  Andre Vehreschild  <vehre@gcc.gnu.org>

PR fortran/77663
* gfortran.dg/coarray_send_by_ref_1.f08: New test.

libgfortran/ChangeLog:

2016-10-01  Andre Vehreschild  <vehre@gcc.gnu.org>

PR fortran/77663
* caf/single.c (caf_internal_error): Fix not terminating va-list.
(_gfortran_caf_register): Free memory also when other allocs failed.
(_gfortran_caf_get_by_ref): Fixed style.
(send_by_ref): Token is now stored at the correct position preventing
inaccessible tokens, memory loss and possibly crashes.

From-SVN: r240695
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/coarray_send_by_ref_1.f08 [new file with mode: 0644]
libgfortran/ChangeLog
libgfortran/caf/single.c