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