fix PR 86484 and PR 84543
authorJanus Weil <janus@gcc.gnu.org>
Sun, 16 Sep 2018 19:57:52 +0000 (21:57 +0200)
committerJanus Weil <janus@gcc.gnu.org>
Sun, 16 Sep 2018 19:57:52 +0000 (21:57 +0200)
commit74b08343dab5369d2229e52c7c2d2056378cbe4e
treecc9e71ec9710800de03ae5d6644b3f0977215365
parented33417a64bfe3d5d8159e29751532c34cb54990
fix PR 86484 and PR 84543

2018-09-16  Janus Weil  <janus@gcc.gnu.org>

PR fortran/86484
PR fortran/84543
* match.c (gfc_match_assignment): For a polymorphic assignment,
make sure that the vtab for the rhs type is generated.

2018-09-16  Janus Weil  <janus@gcc.gnu.org>

PR fortran/86484
PR fortran/84543
* gfortran.dg/class_assign_2.f90: New test case.
* gfortran.dg/class_assign_3.f90: New test case.

From-SVN: r264350
gcc/fortran/ChangeLog
gcc/fortran/match.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/class_assign_2.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/class_assign_3.f90 [new file with mode: 0644]