This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/33539] New: Too much noise on zero-length character strings
- From: "anlauf at gmx dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Sep 2007 21:39:04 -0000
- Subject: [Bug fortran/33539] New: Too much noise on zero-length character strings
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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