aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/interface.c
diff options
context:
space:
mode:
authorThomas Koenig <tkoenig@gcc.gnu.org>2019-05-10 20:14:22 +0000
committerThomas Koenig <tkoenig@gcc.gnu.org>2019-05-10 20:14:22 +0000
commit15e5858fbe6245b07f9115990bc58d4dfb76e46a (patch)
tree2db78b72dd6b6d56335c1e9affc8d98aa76ea021 /gcc/fortran/interface.c
parent93fd52fc8cb71dda94cd0a9e869c618bba8b0292 (diff)
downloadgcc-15e5858fbe6245b07f9115990bc58d4dfb76e46a.zip
gcc-15e5858fbe6245b07f9115990bc58d4dfb76e46a.tar.gz
gcc-15e5858fbe6245b07f9115990bc58d4dfb76e46a.tar.bz2
re PR fortran/61968 (ICE (assembly failure) due to wrongly generating a vtable for TYPE(*) / BT_ASSUMED_TYPE)
2019-05-10 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/61968 * interface.c (compare_actual_formal): Do not create a vtab if the actual argument is assumed type. 2019-05-10 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/61968 * gfortran.dg/assumed_type_10.f90: New test case. * gfortran.dg/assumed_type_11.f90: New test case. From-SVN: r271076
Diffstat (limited to 'gcc/fortran/interface.c')
-rw-r--r--gcc/fortran/interface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/fortran/interface.c b/gcc/fortran/interface.c
index 5b8a0f9..a3a9528 100644
--- a/gcc/fortran/interface.c
+++ b/gcc/fortran/interface.c
@@ -2989,7 +2989,8 @@ compare_actual_formal (gfc_actual_arglist **ap, gfc_formal_arglist *formal,
polymorphic formal arguments. */
if (UNLIMITED_POLY (f->sym)
&& a->expr->ts.type != BT_DERIVED
- && a->expr->ts.type != BT_CLASS)
+ && a->expr->ts.type != BT_CLASS
+ && a->expr->ts.type != BT_ASSUMED)
gfc_find_vtab (&a->expr->ts);
if (a->expr->expr_type == EXPR_NULL