https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81707
Bug ID: 81707 Summary: Type parameter inquiry errors Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: mexas at bristol dot ac.uk Target Milestone: --- $ cat z.f90 character( len=: ), allocatable :: a allocate( character(len=128) :: a ) write (*,*) len(a), a%len, a%kind end $ gfortran8 -c z.f90 z.f90:3:22: write (*,*) len(a), a%len, a%kind 1 Error: Unexpected '%' for nonderived-type variable 'a' at (1) Same with versions 7,6 and 5. Is this simply not supported yet? It seems there has been no progress on this related 2009 PR: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40196