From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20803 invoked by alias); 17 Apr 2011 22:23:38 -0000 Received: (qmail 20786 invoked by uid 22791); 17 Apr 2011 22:23:38 -0000 X-SWARE-Spam-Status: No, hits=0.9 required=5.0 tests=AWL,BAYES_20,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp24.services.sfr.fr (HELO smtp24.services.sfr.fr) (93.17.128.84) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 17 Apr 2011 22:23:20 +0000 Received: from filter.sfr.fr (localhost [127.0.0.1]) by msfrf2414.sfr.fr (SMTP Server) with ESMTP id 906CE7000084; Mon, 18 Apr 2011 00:23:15 +0200 (CEST) Received: from gimli.local (33.123.193-77.rev.gaoland.net [77.193.123.33]) by msfrf2414.sfr.fr (SMTP Server) with ESMTP id 78ACC700008F; Mon, 18 Apr 2011 00:23:15 +0200 (CEST) X-SFR-UUID: 20110417222315494.78ACC700008F@msfrf2414.sfr.fr From: Mikael Morin To: fortran@gcc.gnu.org Subject: Re: [Patch, Fortran] PR 18918 - implement coarray's IMAGE_INDEX for nonconstant bounds Date: Sun, 17 Apr 2011 22:57:00 -0000 User-Agent: KMail/1.13.5 (FreeBSD/8.2-PRERELEASE; KDE/4.5.5; amd64; ; ) Cc: Tobias Burnus , gcc patches References: <4DA9FB2F.3030002@net-b.de> In-Reply-To: <4DA9FB2F.3030002@net-b.de> MIME-Version: 1.0 X-UID: 285 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201104180023.13253.mikael.morin@sfr.fr> X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-04/txt/msg01347.txt.bz2 On Saturday 16 April 2011 22:25:19 Tobias Burnus wrote: > In simplify.c, currently an error is returned if the cobounds are > exceeded. One should probably downgrade those to warnings. OK with that change. As far as I know, it is (weird but) valid to use the image_index result for something completely unrelated to image indexing (thus not involving any sort of invalid coarray access). Then we should not prevent compilation, and return zero as mandated by the standard. Thanks Mikael