https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47915

Gerhard Steinmetz <gerhard.steinmetz.fort...@t-online.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gerhard.steinmetz.fortran@t
                   |                            |-online.de

--- Comment #2 from Gerhard Steinmetz <gerhard.steinmetz.fort...@t-online.de> 
---
Update :


$ gfortran-7-20160911 -c pr47915.f90
$ gfortran-7-20160911 -g -O0 -Wall -fcheck=all -c pr47915.f90
pr47915.f90:1:0:

   subroutine foo(a, b)

Warning: '.a' may be used uninitialized in this function
[-Wmaybe-uninitialized]
pr47915.f90:1:0:

   subroutine foo(a, b)

note: '.a' was declared here


$ gfortran-6 -c pr47915.f90
$ gfortran-6 -g -O0 -Wall -fcheck=all -c pr47915.f90
pr47915.f90:1:0:

   subroutine foo(a, b)

Warning: '.a' may be used uninitialized in this function
[-Wmaybe-uninitialized]
pr47915.f90:1:0:

   subroutine foo(a, b)

note: '.a' was declared here


$ gfortran-5 -c pr47915.f90
$ gfortran-5 -g -O0 -Wall -fcheck=all -c pr47915.f90
pr47915.f90:1:0:

   subroutine foo(a, b)
 ^
Warning: '.a' may be used uninitialized in this function
[-Wmaybe-uninitialized]


$ gfortran-4.9 -c pr47915.f90
$ gfortran-4.9 -g -O0 -Wall -fcheck=all -c pr47915.f90
pr47915.f90: In function 'foo':
pr47915.f90:1:0: warning: '.a' may be used uninitialized in this function
[-Wmaybe-uninitialized]
   subroutine foo(a, b)
 ^
$

Reply via email to