[Bug fortran/42783] New: [4.5 Regression] Bogus Array bounds violation with optional array argument

anlauf at gmx dot de gcc-bugzilla@gcc.gnu.org
Sun Jan 17 21:58:00 GMT 2010


Hi,

when compiled with -fbounds-check, the attached code fails at runtime
with the following error:

At line 8 of file gfcbug99.f90
Fortran runtime error: Actual string length does not match the declared one for
dummy argument 'mnem_list' (0/8)

No problem with 4.4.0 or earlier.


-- 
           Summary: [4.5 Regression] Bogus Array bounds violation with
                    optional array argument
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: anlauf at gmx dot de


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



More information about the Gcc-bugs mailing list