$> cat allocate.f90 INTEGER :: i ALLOCATE(i(3)) end $> gfortran-svn -g -Wall allocate.f90 allocate.f90:2.10:
ALLOCATE(i(3)) 1 Error: Syntax error in ALLOCATE statement at (1) A message as "variable 'i' at (1) not a pointer or allocatable array" would be preferable. -- Summary: improve diagnostics of attempted allocation of non-array Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dfranke at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32715