I noticed two things about the error messages for the attached code:
1) The error for line 6 is shown before the error for line 4.  This strikes me
as odd, and it doesn't lend itself to easier error squashing.
2) The description for both errors are not very descriptive.  Could something
like the line 6 error be changed to "Error: Syntax error ALLOCATE variable must
have dimensions", and the line 4 error should indicate that it needs
dimensions.

 In file baderrors.f90:6

  allocate(b(5))
           1
Error: Syntax error in ALLOCATE statement at (1)
 In file baderrors.f90:4

  integer*4, allocatable :: b
                            1
Error: Object at (1) may not be ALLOCATABLE


-- 
           Summary: Poor Error Description, bad error order
           Product: gcc
           Version: 4.0.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: denney at seas dot upenn dot edu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24404

Reply via email to