https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89603
Bug ID: 89603 Summary: unclassifiable statement error in code that is ok in compaq visual fortran Product: gcc Version: 7.4.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: yumashev at mail dot ru Target Milestone: --- Small source code example "test.f90" giving "unclassifiable statement" error module drglob implicit none type vartype1 double precision :: mu double precision :: inc end type vartype1 type(vartype1), allocatable :: cm(:) end module drglob module drut use drglob implicit none contains subroutine initial allocate (cm(5)) cm(1).mu=2.8d-2 cm(1).inc=7.5527d-1 end subroutine initial end module drut program main use drglob use drut call initial end program main Compilation on OpenSUSE 11.3, 12.3: gfortran test.f90 (gfortran versions from 4.3 to 4.7 make no difference) test.f90:17.9: cm(1).mu=2.8d-2 1 Error: Unclassifiable statement at (1) test.f90:18.9: cm(1).inc=7.5527d-1 1 Error: Unclassifiable statement at (1) test.f90:25.17: use drut 1 Fatal Error: Can't open module file 'drut.mod' for reading at (1): No such file or directory This code normally compiles and runs in Compaq visual fortran on XP platform but I strongly prefer Linux !