https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66679
--- Comment #2 from Gerhard Steinmetz <gerhard.steinmetz.fort...@t-online.de> --- FYI : $ gfortran --version GNU Fortran (SUSE Linux) 6.0.0 20160108 (experimental) [trunk revision 232162] $ gfortran -c pr66679.f90 pr66679.f90:7:0: print*, size(transfer(vec(1),[var])) internal compiler error: tree check: expected record_type or union_type or qual_union_type, have pointer_type in gfc_class_data_get, at fortran/trans-expr.c:130