This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/81707] New: Type parameter inquiry errors
- From: "mexas at bristol dot ac.uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 03 Aug 2017 22:28:43 +0000
- Subject: [Bug fortran/81707] New: Type parameter inquiry errors
- Auto-submitted: auto-generated
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