integer, allocatable :: a
allocate(a(4))
end
gives the - correct - error:
Error: Syntax error in ALLOCATE statement at (1)
However, I prefer the error message of ifort:
error #8196: An ALLOCATE shape must not be given for a scalar object.
--
Summary: Improve error message for allocating scalar with shape
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41940