re PR fortran/66227 ([OOP] EXTENDS_TYPE_OF n returns wrong result for polymorphic...
authorJanus Weil <janus@gcc.gnu.org>
Thu, 17 Nov 2016 07:52:24 +0000 (08:52 +0100)
committerJanus Weil <janus@gcc.gnu.org>
Thu, 17 Nov 2016 07:52:24 +0000 (08:52 +0100)
commit04f1c83099aab49f530f492b9d8119cf9d5ffcdd
tree8b4f0fafbd80536213bd821e526cc672875a48af
parent9bd99cce5b3769fd98b3db0d858222fa67e56486
re PR fortran/66227 ([OOP] EXTENDS_TYPE_OF n returns wrong result for polymorphic variable allocated to extended type)

2016-11-17  Janus Weil  <janus@gcc.gnu.org>

PR fortran/66227
* simplify.c (gfc_simplify_extends_type_of): Fix missed optimization.
Prevent over-simplification. Fix a comment. Add a comment.

2016-11-17  Janus Weil  <janus@gcc.gnu.org>

PR fortran/66227
* gfortran.dg/extends_type_of_3.f90: Fix and extend the test case.

From-SVN: r242535
gcc/fortran/ChangeLog
gcc/fortran/simplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/extends_type_of_3.f90