public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/50331] New: -Wuninitialized and variable passed to WRITE statements
@ 2011-09-08 15:09 arnaud02 at users dot sourceforge.net
  2011-09-08 15:20 ` [Bug fortran/50331] " dominiq at lps dot ens.fr
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: arnaud02 at users dot sourceforge.net @ 2011-09-08 15:09 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-10-18 20:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-08 15:09 [Bug fortran/50331] New: -Wuninitialized and variable passed to WRITE statements arnaud02 at users dot sourceforge.net
2011-09-08 15:20 ` [Bug fortran/50331] " dominiq at lps dot ens.fr
2011-09-08 15:52 ` kargl at gcc dot gnu.org
2013-06-25  9:11 ` dominiq at lps dot ens.fr
2015-10-18 20:33 ` dominiq at lps dot ens.fr

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).