This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/47552] New: CTIME: Valgrind warning "depends on uninitialised value"
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 31 Jan 2011 12:50:48 +0000
- Subject: [Bug fortran/47552] New: CTIME: Valgrind warning "depends on uninitialised value"
- Auto-submitted: auto-generated
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: unassigned@gcc.gnu.org
ReportedBy: burnus@gcc.gnu.org
CC: jb@gcc.gnu.org
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