re PR fortran/20520 (allocatable arrays used uninitialized without a warning)
2018-10-31 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/20520 * gfortran.dg/allocatable_uninitialized_1.f90: New test. From-SVN: r265698
This commit is contained in:
parent
d459595b53
commit
cdf0919d6d
2 changed files with 13 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2018-10-31 Thomas Koenig <tkoenig@gcc.gnu.org>
|
||||
|
||||
PR fortran/20520
|
||||
* gfortran.dg/allocatable_uninitialized_1.f90: New test.
|
||||
|
||||
2018-10-31 Nathan Sidwell <nathan@acm.org>
|
||||
|
||||
* g++.dg/lookup/friend21.C: New.
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
! { dg-do compile }
|
||||
! { dg-options "-O -Wall" }
|
||||
program main
|
||||
real,allocatable:: a(:),b(:)
|
||||
|
||||
a(1)=2*b(1) ! { dg-warning "uninitialized" }
|
||||
|
||||
end
|
Loading…
Add table
Reference in a new issue