https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66227
--- Comment #10 from janus at gcc dot gnu.org --- Author: janus Date: Wed Nov 23 16:46:31 2016 New Revision: 242770 URL: https://gcc.gnu.org/viewcvs?rev=242770&root=gcc&view=rev Log: 2016-11-23 Janus Weil <ja...@gcc.gnu.org> Backport from trunk PR fortran/66227 * simplify.c (gfc_simplify_extends_type_of): Fix missed optimization. Prevent over-simplification. Fix a comment. Add a comment. 2016-11-23 Janus Weil <ja...@gcc.gnu.org> Backport from trunk PR fortran/66227 * gfortran.dg/extends_type_of_3.f90: Fix and extend the test case. Modified: branches/gcc-5-branch/gcc/fortran/ChangeLog branches/gcc-5-branch/gcc/fortran/simplify.c branches/gcc-5-branch/gcc/testsuite/ChangeLog branches/gcc-5-branch/gcc/testsuite/gfortran.dg/extends_type_of_3.f90