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

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tkoenig at gcc dot gnu.org

--- Comment #17 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
There is a warning now:

$ gfortran -O -Wall a.f90
a.f90:3:0:

 a(1)=2*b(1)

Warning: ‘b.offset’ is used uninitialized in this function [-Wuninitialized]
a.f90:3:0: Warning: ‘a.offset’ is used uninitialized in this function
[-Wuninitialized]
a.f90:3:0:

 a(1)=2*b(1)

Warning: ‘b.offset’ is used uninitialized in this function [-Wuninitialized]
a.f90:1:0:

 real,allocatable:: a(:),b(:)

note: ‘b.offset’ was declared here
a.f90:3:0:

 a(1)=2*b(1)

Warning: ‘a.offset’ is used uninitialized in this function [-Wuninitialized]
a.f90:1:0:

 real,allocatable:: a(:),b(:)

note: ‘a.offset’ was declared here

Although the text is a bit unclear it does show that something
is wrong.

So, commit a test case and close as fixed?

Reply via email to