http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46327
Summary: type field access by . (instead of %) unsupported
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: [email protected]
ReportedBy: [email protected]
Target: x86_64-unknown-linux-gnu
Some legacy Fortrans supported access type.field (like in C).
It works with iFort (11.1 20100806).
It does not work with:
GNU Fortran (GCC) 4.4.6 20101105 (prerelease)
GNU Fortran (GCC) 4.6.0 20101105 (experimental)
program main
type foo
integer :: a
end type foo
type(foo) :: q
q.a = 3
print *, q
end program main
->
struct.f90:6.2:
q.a = 3
1
Error: Unclassifiable statement at (1)