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: unassig...@gcc.gnu.org
        ReportedBy: arnau...@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.

Reply via email to