https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66227
--- Comment #7 from janus at gcc dot gnu.org --- Author: janus Date: Thu Nov 17 07:52:24 2016 New Revision: 242535 URL: https://gcc.gnu.org/viewcvs?rev=242535&root=gcc&view=rev Log: 2016-11-17 Janus Weil <ja...@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 <ja...@gcc.gnu.org> PR fortran/66227 * gfortran.dg/extends_type_of_3.f90: Fix and extend the test case. Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/simplify.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gfortran.dg/extends_type_of_3.f90