From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9248 invoked by alias); 17 May 2009 10:57:27 -0000 Received: (qmail 9200 invoked by uid 48); 17 May 2009 10:57:07 -0000 Date: Sun, 17 May 2009 10:57:00 -0000 Message-ID: <20090517105707.9199.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/40142] integer constants not promoted with -fdefault-integer-8 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "fxcoudert 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: 2009-05/txt/msg01446.txt.bz2 ------- Comment #2 from fxcoudert at gcc dot gnu dot org 2009-05-17 10:57 ------- Character lengths are integers of kind value 4. This is not modified by -fdefault-integer-8. Thus, when converting the index, which has kind value 8, to the type of a character length, you get the warning with -Wconversion. I don't think we should modify the behaviour of gfortran. The only possible course of action would be to make character length have kind value 8 when -fdefault-integer-8 is used, but that means we would have to compile specialized versions of all libgfortran routines that take strings as arguments (or return strings). This looks way too much effort to support a questionable combination of options (one of which asks for pedantic handling of types, and one of which is designed to help people compile code that is sloppy with respect to types). If a mainainer concurs, please close this as WONTFIX. -- fxcoudert at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fxcoudert at gcc dot gnu dot | |org Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2009-05-17 10:57:07 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40142