This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34296] New: Intent(out) and character functions with RESULT: Value-not-set warning
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Nov 2007 16:03:34 -0000
- Subject: [Bug fortran/34296] New: Intent(out) and character functions with RESULT: Value-not-set warning
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following code does not give a warning:
CHARACTER(2) FUNCTION ctbgt() RESULT(ctab)
END function ctbgt
Only if one removes either the RESULT or changes CHARACTER in, e.g., INTEGER a
warning is shown.
w/ RESULT and INTEGER:
warning: Function return value not set
w/o RESULT:
warning: Function does not return a value
* * *
Similarly for INTENT(OUT) arguments of procedures:
SUBROUTINE ctbgt(ctab)
INTEGER, intent(out) :: ctab
END SUBROUTINE ctbgt
--
Summary: Intent(out) and character functions with RESULT: Value-
not-set warning
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
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=34296