http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50960
--- Comment #11 from janus at gcc dot gnu.org 2011-11-02 21:17:11 UTC --- (In reply to comment #9) > FAIL: gfortran.dg/extends_type_of_1.f03 -O0 (internal compiler error) > FAIL: gfortran.dg/extends_type_of_3.f90 -O (internal compiler error) These two fail with: internal compiler error: in fold_convert_loc, at fold-const.c:1894 Not quite sure what goes wrong there. Some typing problem? Reduced test case: type :: t1 end type type, extends(t1) :: t2 end type class(t1), pointer :: c1 type(t2) :: y if (.not. extends_type_of (y, c1)) call abort() end