https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109157
kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kargl at gcc dot gnu.org Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Last reconfirmed| |2023-03-16 Priority|P3 |P4 --- Comment #1 from kargl at gcc dot gnu.org --- If you change class(tfieldmetadata_base), dimension(:), intent(in) :: tpfields to type(tfieldmetadata_base), dimension(:), intent(in) :: tpfields the code executes without the runtime error. Likely, gfortran is not using the correct dimension from the vtab created for a class entity.