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/82056] Automatic array can be sized via allocatable array


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

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
           Priority|P3                          |P5
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-31
     Ever confirmed|0                           |1
           Severity|normal                      |enhancement

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
The test is coming from
https://groups.google.com/forum/#!topic/comp.lang.fortran/C4TowT3_Vgw.

As pointed out in the discussion, compiling the test with -O -Wall gives

pr82056.f90:8:0:

     real, dimension(size(x))        :: y

Warning: 'x.dim[0].ubound' is used uninitialized in this function
[-Wuninitialized]
pr82056.f90:8:0: Warning: 'x.dim[0].lbound' is used uninitialized in this
function [-Wuninitialized]

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