This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/50331] New: -Wuninitialized and variable passed to WRITE statements


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]