]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR fortran/68544 (ICE trying to pass derived type constructor as a function)
authorSteven G. Kargl <kargl@gcc.gnu.org>
Thu, 20 Jun 2019 23:15:32 +0000 (23:15 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Thu, 20 Jun 2019 23:15:32 +0000 (23:15 +0000)
commit8cb98c28f2c59ace1ed0c4a654cecd76ca1403fc
treeea92d568efa1cf416102dfd7b667d397694c0eeb
parent72fbe222d48b1872a9d46aa6f677c28f375eb8ce
backport: re PR fortran/68544 (ICE trying to pass derived type constructor as a function)

2019-06-20  Steven G. Kargl  <kargl@gcc.gnu.org>

Backport from mainline
PR fortran/68544
* resolve.c (is_dt_name): New function to compare symbol name against
list of derived types.
(resolve_actual_arglist): Use it to find wrong code.

2019-06-20  Steven G. Kargl  <kargl@gcc.gnu.org>

Backport from mainline
PR fortran/68544
* gfortran.dg/pr68544.f90: New test.
* gfortran.dg/pr85687.f90: Modify test for new error message.

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