From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5862 invoked by alias); 16 Feb 2008 18:23:20 -0000 Received: (qmail 5769 invoked by uid 48); 16 Feb 2008 18:22:38 -0000 Date: Sat, 16 Feb 2008 18:23:00 -0000 Message-ID: <20080216182238.5768.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/34907] valgrind error indication from testsuite trans-types.c: gfc_typenode_for_spec In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jvdelisle 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: 2008-02/txt/msg01801.txt.bz2 ------- Comment #8 from jvdelisle at gcc dot gnu dot org 2008-02-16 18:22 ------- Here is the culprit: Index: iresolve.c =================================================================== --- iresolve.c (revision 132355) +++ iresolve.c (working copy) @@ -585,6 +585,7 @@ gfc_resolve_cshift (gfc_expr *f, gfc_exp if (shift->ts.kind < m) { gfc_typespec ts; + gfc_clear_ts (&ts); ts.type = BT_INTEGER; ts.kind = m; gfc_convert_type_warn (shift, &ts, 2, 0); This fixes it. There are a bunch of these in iresolve.c I will fix them all for 4.4 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34907