public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/33523]  New: Incorrect warning messages about uninitialized variables
@ 2007-09-21 19:25 dir at lanl dot gov
  2007-09-22 13:57 ` [Bug fortran/33523] " fxcoudert at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: dir at lanl dot gov @ 2007-09-21 19:25 UTC (permalink / raw)
  To: gcc-bugs

These incorrect messages have been appearing lately. The variables are always
and only accessed in the save branch of the switch statements - so they will
never and can never be used uninitialized.


[dranta:~/tests/gfortran-D] dir% gfortran -c -O2 -Wuninitialized
module_files.f90
module_files.f90: In function 'my_sio_file_read_common':
module_files.f90:36: warning: 'scratch_r8.dim[1].stride' may be used
uninitialized in this function
module_files.f90:36: warning: 'scratch_r8.offset' may be used uninitialized in
this function
module_files.f90:35: warning: 'scratch_i4.dim[1].stride' may be used
uninitialized in this function
module_files.f90:35: warning: 'scratch_i4.offset' may be used uninitialized in
this function
[dranta:~/tests/gfortran-D] dir% gfortran --v
Using built-in specs.
Target: powerpc-apple-darwin8.10.0
Configured with: ../gcc/configure --disable-bootstrap --enable-multilib
--prefix=/usr/local/gfortran --enable-languages=c,fortran
Thread model: posix
gcc version 4.3.0 20070921 (experimental) (GCC)


-- 
           Summary: Incorrect warning messages about uninitialized variables
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dir at lanl dot gov
  GCC host triplet: powerpc-apple-darwin8.10.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33523


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug fortran/33523] Incorrect warning messages about uninitialized variables
  2007-09-21 19:25 [Bug fortran/33523] New: Incorrect warning messages about uninitialized variables dir at lanl dot gov
@ 2007-09-22 13:57 ` fxcoudert at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-09-22 13:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from fxcoudert at gcc dot gnu dot org  2007-09-22 13:57 -------


*** This bug has been marked as a duplicate of 33522 ***


-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33523


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-09-22 13:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-21 19:25 [Bug fortran/33523] New: Incorrect warning messages about uninitialized variables dir at lanl dot gov
2007-09-22 13:57 ` [Bug fortran/33523] " fxcoudert at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).