From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30601 invoked by alias); 23 Sep 2007 21:39:15 -0000 Received: (qmail 30548 invoked by uid 48); 23 Sep 2007 21:39:04 -0000 Date: Sun, 23 Sep 2007 21:39:00 -0000 Subject: [Bug fortran/33539] New: Too much noise on zero-length character strings X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "anlauf at gmx dot de" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-09/txt/msg01958.txt.bz2 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