This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/82056] Automatic array can be sized via allocatable array
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 31 Aug 2017 10:21:27 +0000
- Subject: [Bug fortran/82056] Automatic array can be sized via allocatable array
- Auto-submitted: auto-generated
- References: <bug-82056-4@http.gcc.gnu.org/bugzilla/>
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]