https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80392
janus at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-valid-code Known to work| |4.8.5 Summary|ICE with allocatable |[5/6/7 Regression] [OOP] |polymorphic function result |ICE with allocatable |in a procedure pointer |polymorphic function result |component |in a procedure pointer | |component Known to fail| |4.9.4, 5.4.1, 6.3.0, 7.0 --- Comment #2 from janus at gcc dot gnu.org --- (In reply to zed.three from comment #0) > With gfortran 7.0.1, I get an ICE: > > gfortran-7: internal compiler error: Segmentation fault (program f951) > > I also get an ICE with 5.4.1 and 6.2.1 (but not 4.8.5) if I remove the > `bad_sub` implementation. Right. This is clearly an ICE-on-valid regression: module mwe implicit none type :: MyType procedure(my_op), nopass, pointer :: op end type contains function my_op() result(foo) class(MyType), allocatable :: foo end function end module