This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/50331] New: -Wuninitialized and variable passed to WRITE statements
- From: "arnaud02 at users dot sourceforge.net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 08 Sep 2011 15:01:12 +0000
- Subject: [Bug fortran/50331] New: -Wuninitialized and variable passed to WRITE statements
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50331
Bug #: 50331
Summary: -Wuninitialized and variable passed to WRITE
statements
Classification: Unclassified
Product: gcc
Version: 4.6.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: arnaud02@users.sourceforge.net
Considering:
subroutine qq()
write(*,*) aa ! aa has not been set
end
gfortran 4.6.1 does not emit any warning when using "gfortran -O3
-Wuninitialized -c qq.f".
For reference:
>df /c -I.. qq.f
Compaq Visual Fortran Optimizing Compiler Version 6.6 (Update A)
Copyright 2001 Compaq Computer Corp. All rights reserved.
qq.f
qq.f(2) : Warning: Variable AA is used before its value has been defined
write(*,*) aa
-----------------^
I was expected that this deficiency had been fixed due the work for issue 43665
but clearly not yet.