This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/28660] Spurious warning: 'ubound.6' is used uninitialized in this function
- From: "pault at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Aug 2006 17:17:17 -0000
- Subject: [Bug fortran/28660] Spurious warning: 'ubound.6' is used uninitialized in this function
- References: <bug-28660-9741@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from pault at gcc dot gnu dot org 2006-08-11 17:17 -------
> The attached runs the testcase below correctly and regtests, except for
> gfortran.fortran-torture/execute/entry_5.f90, on Cygwin_NT/PIV.
I have tracked down the cause of this - it's just building tonto-2.3 at
present, having regtested fine.
> I have not had enough time to really check with it is necessary and sufficient,
> to fix this one regression nor have I had time to track down the cause of an
> irritating but apparently harmless wrinkle - the declaration char z[1:.z]
> appears twice; the first time with an incorrect .z and the second with the
> correct value for .z. Fortunately, it is the second declaration that is seen
> in the scope of the executable code.
I'll try to look at this tonight and then I turn into a pumpkin for a few days.
I have upgraded this to "major", since I consider the correct treatment of
variable declarations to be absolutely critical. As you said, Erik, "Ah, that
explains the crazy results I'm getting from my program!"
Paul
--
pault at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pault at gcc dot gnu dot org
|dot org |
Severity|normal |major
Status|NEW |ASSIGNED
Last reconfirmed|2006-08-09 10:20:36 |2006-08-11 17:17:17
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28660