[Bug fortran/13615] [gfortran] g77 -Wuninitialized doesn't produce warning on characters

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Apr 26 07:42:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-26 04:24 -------
The reason why it does not complain is that STRING(N:N) is not folded to be just an 
access.

;; Function warn_character (warn_character__)

warn_character ()
{
  int1 c[1];

<bb 0>:
  _gfortran_copy_string (1, &yyy.d, 1, &c);
  return;

}

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |12456
           Severity|normal                      |enhancement
   Last reconfirmed|2004-01-25 18:04:22         |2004-04-26 04:24:56
               date|                            |
            Summary|g77 -Wuninitialized doesn't |[gfortran] g77 -
                   |produce warning on          |Wuninitialized doesn't
                   |characters                  |produce warning on
                   |                            |characters
   Target Milestone|---                         |tree-ssa


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



More information about the Gcc-bugs mailing list