interface.c (gfc_compare_types): Check for unlimited polymorphism flag in the correct...
authorAndre Vehreschild <vehre@gmx.de>
Tue, 28 Apr 2015 19:03:01 +0000 (21:03 +0200)
committerAndre Vehreschild <vehre@gcc.gnu.org>
Tue, 28 Apr 2015 19:03:01 +0000 (21:03 +0200)
commit77b7d71e793213a330ccb19dbf3c54323c656539
tree687628690dd631060e30c2ad86efe1d98649dc21
parentf307500830e39dbab2e0bc904aecbfc1995216ac
interface.c (gfc_compare_types): Check for unlimited polymorphism flag in the correct position indepent of the...

gcc/fortran/ChangeLog:

2015-04-28  Andre Vehreschild  <vehre@gmx.de>

* interface.c (gfc_compare_types): Check for unlimited
polymorphism flag in the correct position indepent of the _data
component being present or not.  This prevents a segfault, when
the _data component is not present.
* symbol.c (gfc_type_compatible): Same.

gcc/testsuite/ChangeLog:

2015-04-28  Andre Vehreschild  <vehre@gmx.de>

* gfortran.dg/implicit_class_1.f90: Adding flag to check, if
segfault is fixed.

From-SVN: r222539
gcc/fortran/ChangeLog
gcc/fortran/interface.c
gcc/fortran/symbol.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/implicit_class_1.f90