$ 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
Not implemented yet. In fact I did not even know about it. This will take some front end parsing, etc etc
Duplicate. *** This bug has been marked as a duplicate of bug 40196 ***