re PR fortran/89496 (gcc/fortran/trans-types.c:3015:9: runtime error: member access...
authorThomas Koenig <tkoenig@gcc.gnu.org>
Tue, 26 Feb 2019 19:10:00 +0000 (19:10 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Tue, 26 Feb 2019 19:10:00 +0000 (19:10 +0000)
commite5bf8dee56aaf4c489a1f3ceca04a8fcd1d2665a
treed91a3ddd87b0b57de059fb05f1b7671cf07e82b1
parent140a0bddcc12f14fcbc914e117ccf79cc6dd16cc
re PR fortran/89496 (gcc/fortran/trans-types.c:3015:9: runtime error: member access within null pointer of type 'struct gfc_formal_arglist')

2019-02-26  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/89496
* trans-types.c (get_formal_from_actual_arglist): If
the actual arglist has no expression, the corresponding
formal arglist is an alternate return.

2019-02-26  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/89496
* gfortran.dg/altreturn_9_0.f90: New file.
* gfortran.dg/altreturn_9_1.f90: New file.

From-SVN: r269226
gcc/fortran/ChangeLog
gcc/fortran/trans-types.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/altreturn_9_0.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/altreturn_9_1.f90 [new file with mode: 0644]