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