From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11158 invoked by alias); 20 Jun 2012 20:41:44 -0000 Received: (qmail 11144 invoked by uid 22791); 20 Jun 2012 20:41:43 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 20 Jun 2012 20:41:25 +0000 From: "mikael at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/53732] [4.7/4.8 Regression] "mismatching comparison operand types" on compile Date: Wed, 20 Jun 2012 20:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: ice-on-valid-code, wrong-code X-Bugzilla-Severity: major X-Bugzilla-Who: mikael at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.7.2 X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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: 2012-06/txt/msg01415.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53732 --- Comment #4 from Mikael Morin 2012-06-20 20:41:24 UTC --- (In reply to comment #3) It seems you have pinpointed it. Unfortunately, my computer is broken at the moment, so that I have no way to test myself, let alone propose a patch. The purpose of my change was to call gfc_add_loop_ss_code on the nested loop (the sum one) exactly once. But I didn't think that the nested call could have the wrong subscript flag. I will think about the best way to tackle the problem. Maybe we could just disable the nested call if subscript is true.