Currently one gets for
  Var(1)%Array(k) = k
the error:
  out of bounds for array 'var'

sunf95 writes:
  Subscript number 1 has value 11 in array 'ARRAY'

I think the output of SUN is more correct; best would be of cause:
  'var%array'

Test case: bnd11 of
http://www.polyhedron.com/pb05/linux/diagnose.html


-- 
           Summary: -fbounds-check: For derived types, write not also
                    compound name
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: enhancement
          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=29800

Reply via email to