[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc-fortran
Subject:    [patch, testsuite] Committed test for PR 20520
From:       Thomas Koenig <tkoenig () netcologne ! de>
Date:       2018-10-31 18:38:58
Message-ID: abba5028-8448-9949-0428-1b0337180c57 () netcologne ! de
[Download RAW message or body]

Hi,

I just committed the test case below so the bug can be closed.

The error message is less than ideal, but at least it is something.
Maybe I'll file a separate PR about translating error messages about
artificial variables to user's variables.

Regards

	Thomas

2018-10-31  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/20520
	* gfortran.dg/allocatable_uninitialized_1.f90: New test.

["allocatable_uninitialized_1.f90" (text/x-fortran)]

! { dg-do compile }
! { dg-options "-O -Wall" }
program main
  real,allocatable:: a(:),b(:)

   a(1)=2*b(1) ! { dg-warning "uninitialized" }

end


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic