The following program compiles OK with no message that st is being redefined.
function fun() result(st) character(2) st character(1) st st = '1' end function fun -- Summary: No error on repeated declaration Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jonasson at hi dot is http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37412