http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47552
Summary: CTIME: Valgrind warning "depends on uninitialised
value"
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Keywords: wrong-code
Severity: normal
Priority: P3
Component: fortran
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
The following does not seem to be a regression and it only occurs with the
function version and not with the subroutine version.
character(len=20) :: str
! OK:
!call ctime(time8(),str)
! Valgrind issue (2x line 7):
! Conditional jump or move depends on uninitialised value
str = ctime(time8()) ! << this line
print *, str
end