re PR fortran/78800 ([OOP] ICE in compare_parameter, at fortran/interface.c:2246)
authorJanus Weil <janus@gcc.gnu.org>
Thu, 15 Dec 2016 14:07:51 +0000 (15:07 +0100)
committerJanus Weil <janus@gcc.gnu.org>
Thu, 15 Dec 2016 14:07:51 +0000 (15:07 +0100)
commitfec5ce248546144be3bec8655fd72c091c813594
tree3d10f0a3a39ed09a0afcf4532ce4b7077b4d82ad
parent50a8a9413d3a0a485ef5b1886361c2a1c4487433
re PR fortran/78800 ([OOP] ICE in compare_parameter, at fortran/interface.c:2246)

2016-12-15  Janus Weil  <janus@gcc.gnu.org>

PR fortran/78800
* interface.c (compare_allocatable): Avoid additional errors on bad
class declarations.
(compare_parameter): Put the result of gfc_expr_attr into a variable,
in order to avoid calling it multiple times. Exit early on bad class
declarations to avoid ICE.

2016-12-15  Janus Weil  <janus@gcc.gnu.org>

PR fortran/78800
* gfortran.dg/unlimited_polymorphic_27.f90: New test case.

From-SVN: r243691
gcc/fortran/ChangeLog
gcc/fortran/interface.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/unlimited_polymorphic_27.f90 [new file with mode: 0644]