From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24991 invoked by alias); 8 Jan 2007 18:55:45 -0000 Received: (qmail 24965 invoked by uid 48); 8 Jan 2007 18:55:36 -0000 Date: Mon, 08 Jan 2007 18:55:00 -0000 Message-ID: <20070108185536.24964.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/30408] [gfortran, 4.3 regression]: ICE on valid with -Wall In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "kargl at gcc dot gnu dot org" 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-01/txt/msg00531.txt.bz2 ------- Comment #3 from kargl at gcc dot gnu dot org 2007-01-08 18:55 ------- This is related to an undocumented warning flag. In options.c, gfortran sets several warnings to on. One of these is gfc_option.warn_character_truncation = 1; If I change this to 0, then your code with -Wall compiles. Fortunately, gfc_option.warn_character_truncation appears only in decl.c and resolve.c, and occurs exactly once in both files. A few things need to occur: 1) Add a -W[no-]character-truncation option. 2) Document the option. 3) Fix Martin's bug -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30408