public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/31284] New: Uninitialized variable not detected
@ 2007-03-20 17:37 burnus at gcc dot gnu dot org
2007-03-20 17:38 ` [Bug middle-end/31284] " burnus at gcc dot gnu dot org
2007-03-20 17:43 ` pinskia at gcc dot gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-03-20 17:37 UTC (permalink / raw)
To: gcc-bugs
In the following program, the uninitialized "i" is only detected if one
uncomments the print statement.
program test
implicit none
integer :: i,j
j = i*5
print*,i
end program test
--
Summary: Uninitialized variable not detected
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: enhancement
Priority: P3
Component: middle-end
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=31284
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug middle-end/31284] Uninitialized variable not detected
2007-03-20 17:37 [Bug middle-end/31284] New: Uninitialized variable not detected burnus at gcc dot gnu dot org
@ 2007-03-20 17:38 ` burnus at gcc dot gnu dot org
2007-03-20 17:43 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-03-20 17:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from burnus at gcc dot gnu dot org 2007-03-20 17:38 -------
Forgot to write that this is a Fortran program. Use
gfortran -Wall -O
to compile it.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31284
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug middle-end/31284] Uninitialized variable not detected
2007-03-20 17:37 [Bug middle-end/31284] New: Uninitialized variable not detected burnus at gcc dot gnu dot org
2007-03-20 17:38 ` [Bug middle-end/31284] " burnus at gcc dot gnu dot org
@ 2007-03-20 17:43 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-03-20 17:43 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2007-03-20 17:43 -------
And the issue here is really PR19430
For some reason gfortran decided that print will cause a pass via reference :).
*** This bug has been marked as a duplicate of 19430 ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31284
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-03-20 17:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-20 17:37 [Bug middle-end/31284] New: Uninitialized variable not detected burnus at gcc dot gnu dot org
2007-03-20 17:38 ` [Bug middle-end/31284] " burnus at gcc dot gnu dot org
2007-03-20 17:43 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).