When I compile the function listed below I receive no diagnostics. It should
say:
test.f90: In function 'test':
test.f90:1: warning: Function return value not set
FUNCTION test() RESULT(f)
REAL, DIMENSION(1) :: f
END FUNCTION test
--
Summary: gfortran prints no warning message when an unset return
value is an array
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: michael dot a dot richmond at nasa dot gov
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31463