This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32715] New: improve diagnostics of attempted allocation of non-array
- From: "dfranke at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jul 2007 09:35:00 -0000
- Subject: [Bug fortran/32715] New: improve diagnostics of attempted allocation of non-array
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
$> 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