From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 119714 invoked by alias); 3 Sep 2016 13:19:30 -0000 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 Received: (qmail 119685 invoked by uid 89); 3 Sep 2016 13:19:29 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=H*Ad:D*gmx.de, HTo:D*gmx.de X-Spam-User: qpsmtpd, 2 recipients X-HELO: nef2.ens.fr Received: from nef2.ens.fr (HELO nef2.ens.fr) (129.199.96.40) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 03 Sep 2016 13:19:27 +0000 Received: from mailhost.lps.ens.fr (tournesol.lps.ens.fr [129.199.120.1]) by nef2.ens.fr (8.13.6/1.01.28121999) with ESMTP id u83DJO3d025757 ; Sat, 3 Sep 2016 15:19:24 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mailhost.lps.ens.fr (Postfix) with ESMTP id A5E3015A; Sat, 3 Sep 2016 15:19:24 +0200 (CEST) Received: from mailhost.lps.ens.fr ([127.0.0.1]) by localhost (tournesol.lps.ens.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LxFfxgQeRDqJ; Sat, 3 Sep 2016 15:19:24 +0200 (CEST) Received: from [192.168.1.21] (log78-1-82-242-47-10.fbx.proxad.net [82.242.47.10]) by mailhost.lps.ens.fr (Postfix) with ESMTPSA id 76080159; Sat, 3 Sep 2016 15:19:24 +0200 (CEST) From: =?utf-8?Q?Dominique_d=27Humi=C3=A8res?= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Re: [Fortran, Patch, PR72832, v1] [6/7 Regression] [OOP] ALLOCATE with SOURCE fails to allocate requested dimensions Date: Sat, 03 Sep 2016 14:20:00 -0000 Message-Id: <0ED68110-F09C-4B27-95F9-DD120663C471@lps.ens.fr> Cc: fortran@gcc.gnu.org, gcc-patches To: Andre Vehreschild Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-SW-Source: 2016-09/txt/msg00145.txt.bz2 Hi Andre, The patch works as expected. As said on IRC, IMO the dejagnu directives in = gfortran.dg/allocate_with_source_23.f03 +! { dg-do run { xfail *-*-* } } +! { dg-options "-fcheck=3Dbounds" } should be replaced with +! { dg-do run } +! { dg-options "-fcheck=3Dbounds" } +! { dg-shouldfail "Array reference out of bounds" } (see, e.g., gfortran.dg/assumed_rank_3.f90) which is what I have tested. Thanks for the patch, Dominique