From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29204 invoked by alias); 22 Jan 2010 20:43:16 -0000 Received: (qmail 29163 invoked by uid 48); 22 Jan 2010 20:43:04 -0000 Date: Fri, 22 Jan 2010 20:43:00 -0000 Message-ID: <20100122204304.29162.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/42809] Too much noise with -Wconversion In-Reply-To: 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: 2010-01/txt/msg02775.txt.bz2 ------- Comment #5 from anlauf at gmx dot de 2010-01-22 20:43 ------- There is also a lot of noise when a derived type with default initialization is instantiated. Moreover, the warnings point to an unexpected locus. Consider: module bla implicit none integer, parameter :: i1 = 1, i2 = 2 type t_datum integer(i1) :: state = 0 integer(i2) :: flags = 0 end type t_datum type t_x type(t_datum) :: a type(t_datum) :: b end type t_x contains subroutine dummy end subroutine dummy end module bla !------------------------------------------------ module foo use bla, only: t_x, &! Derived type dummy ! Some unused subroutine implicit none contains subroutine work type (t_x) :: x end subroutine work end module foo This gives: gfcbug101.f90:19.49: dummy ! Some unused subroutine 1 Warning: Conversion from INTEGER(4) to INTEGER(1) at (1) gfcbug101.f90:19.49: dummy ! Some unused subroutine 1 Warning: Conversion from INTEGER(4) to INTEGER(2) at (1) gfcbug101.f90:19.49: dummy ! Some unused subroutine 1 Warning: Conversion from INTEGER(4) to INTEGER(1) at (1) gfcbug101.f90:19.49: dummy ! Some unused subroutine 1 Warning: Conversion from INTEGER(4) to INTEGER(2) at (1) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42809