public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/13615] New: g77 -Wuninitialized doesn't produce warning on characters
@ 2004-01-08 15:41 smelkov at mph1 dot phys dot spbu dot ru
  2004-01-08 15:42 ` [Bug fortran/13615] " smelkov at mph1 dot phys dot spbu dot ru
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: smelkov at mph1 dot phys dot spbu dot ru @ 2004-01-08 15:41 UTC (permalink / raw)
  To: gcc-bugs

g77 should warn that 'c' might be used uninitialized, while the same code templated 
with character changed to integer or 'double precision' generates the warning. 
 
 
----test_uninitialized.f------------------------- 
c g77 -Wuninitialized -c -O  test_uninitialized.f  
c test_uninitialized.f: In subroutine `warn_integer': 
c test_uninitialized.f:15: warning: `a' might be used uninitialized in this function 
c 
c *** THERE IS NO *** 
c test_uninitialized.f:29: warning: `c' might be used uninitialized ... 
 
c     says that a might be used uninitialized 
      subroutine warn_integer 
      implicit none 
 
      integer b 
      common /xxx/ b 
 
      integer a 
 
      b = a 
      end 
 
 
c     should say that a might be used uninitialized, 
c     but doesn't! 
      subroutine warn_character 
      implicit none 
 
      character d 
      common /yyy/ d 
 
      character c 
 
      d = c 
      end 
----------------- 
 
[kirr@roro Si2O7H6.molcas]$ g77 -v 
Reading specs from /mnt/tmini/kirr/local/gcc-3.3.2/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/specs 
Configured with: ../gcc-3.3.2/configure --prefix=/mnt/tmini/kirr/local/gcc-3.3.2 --with-gnu-as 
--with-gnu-ld --enable-threads=posix --enable-languages=c,c++,f77 --enable-checking 
--disable-nls 
Thread model: posix 
gcc version 3.3.2

-- 
           Summary: g77 -Wuninitialized doesn't produce warning on
                    characters
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: smelkov at mph1 dot phys dot spbu dot ru
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


^ permalink raw reply	[flat|nested] 10+ messages in thread
[parent not found: <bug-13615-6709@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2006-06-01  8:17 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-08 15:41 [Bug fortran/13615] New: g77 -Wuninitialized doesn't produce warning on characters smelkov at mph1 dot phys dot spbu dot ru
2004-01-08 15:42 ` [Bug fortran/13615] " smelkov at mph1 dot phys dot spbu dot ru
2004-01-08 18:26 ` pinskia at gcc dot gnu dot org
2004-01-25 18:04 ` dhazeghi at yahoo dot com
2004-04-26  7:42 ` [Bug fortran/13615] [gfortran] " pinskia at gcc dot gnu dot org
2004-05-17  2:43 ` tobi at gcc dot gnu dot org
2004-05-19 10:13 ` pinskia at gcc dot gnu dot org
2004-05-24 15:40 ` pinskia at gcc dot gnu dot org
     [not found] <bug-13615-6709@http.gcc.gnu.org/bugzilla/>
2006-01-09  4:29 ` [Bug fortran/13615] " pinskia at gcc dot gnu dot org
2006-06-01  8:17 ` paul dot richard dot thomas at cea dot fr

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).