https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78395
janus at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic Status|UNCONFIRMED |NEW Last reconfirmed| |2016-11-17 CC| |janus at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from janus at gcc dot gnu.org --- I can confirm the ICE in gfc_add_component_ref only with gfortran 5.4.1 and earlier. gfortran 6.2.0 says: v6 = 3 * v4%get_t2() ! This line is the one which causes ICE 1 Error: Assignment to an allocatable polymorphic variable at (1) is not yet supported And a current trunk build: v6 = 3 * v4%get_t2() ! This line is the one which causes ICE 1 Error: Can't convert TYPE(__vtype_types_mod_A1) to CLASS(a2) at (1) The error with 6.2 is acceptable, I guess, but the one with trunk is not so nice.