This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/40196] [F03] [F08] Type parameter inquiry (str%len, a%kind) and Complex parts (z%re, z%im)
- From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 02 Oct 2017 02:07:31 +0000
- Subject: [Bug fortran/40196] [F03] [F08] Type parameter inquiry (str%len, a%kind) and Complex parts (z%re, z%im)
- Auto-submitted: auto-generated
- References: <bug-40196-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40196
--- Comment #6 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
This works:
type tp(dim)
integer, KIND :: dim = 3
real :: dist(dim)
end type tp
type(tp) :: t(5)
print *, t%dist(2)
print *, t
end