public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/33539]  New: Too much noise on zero-length character strings
@ 2007-09-23 21:39 anlauf at gmx dot de
  2007-10-01  0:08 ` [Bug fortran/33539] Too much noise for " fxcoudert at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: anlauf at gmx dot de @ 2007-09-23 21:39 UTC (permalink / raw)
  To: gcc-bugs

Hi,

gfortran is way too noisy for zero-length character strings.
I get:

% gfc gfcbug71.f90
gfcbug71.f90:3.44:

  character(len=*), parameter :: prefix = ""
                                           1
Warning: CHARACTER variable has zero length at (1)
gfcbug71.f90:7.14:

  use gfcbug71
             1
Warning: CHARACTER variable has zero length at (1)
% cat gfcbug71.f90
module gfcbug71
  implicit none
  character(len=*), parameter :: prefix = ""
end module gfcbug71

program test
  use gfcbug71
  implicit none
  print *, "prefix = ", prefix
end program test


The first warning is a nuisance, but the second one when USEing
the module is really annoying.  This should not be the default.


-- 
           Summary: Too much noise on zero-length character strings
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: anlauf at gmx dot de
  GCC host triplet: i686-pc-linux-gnu


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


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

end of thread, other threads:[~2007-10-04 20:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-23 21:39 [Bug fortran/33539] New: Too much noise on zero-length character strings anlauf at gmx dot de
2007-10-01  0:08 ` [Bug fortran/33539] Too much noise for " fxcoudert at gcc dot gnu dot org
2007-10-03 18:51 ` tkoenig at gcc dot gnu dot org
2007-10-04 20:26 ` tkoenig at gcc dot gnu dot org
2007-10-04 20:27 ` tkoenig 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).