From patchwork Fri Jan 19 23:31:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Kargl X-Patchwork-Id: 863864 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-471712-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="CuDcMBVt"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zNcXx5Tf8z9t20 for ; Sat, 20 Jan 2018 10:31:44 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:reply-to:mime-version:content-type; q=dns; s=default; b=HPriJf2+tT1KY7vs5K5YTfFGlWwRh37z4FLJM+DplCG 4mBeHd8xadc2ndZN4/6WC3qpXKqDs6NpH8LCPSkCo2ERvRovMF9CtKyWGFdOQJ8q fCqTG68s0aGigkWU320LoICjEJD9o3k9GjE2d4/x0p4ulj8qp+Qe/Uc0yNnyu2RE = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:reply-to:mime-version:content-type; s=default; bh=V1n4skALdL3okSTn+uRO2NtePw4=; b=CuDcMBVtMAB+G+hc9 kecOh2G78Y5rg/+QMwbSSLbGpTpz1PYba/wQ9wnlAgaAfXAI4o1LyFOQN61o7PMb YoFcNiWVNth+0EgW85uQkwq6GZqpCfGwY1d93tuK4fQjG4No/O5hXjbRvLh9t4J2 SIsFln4B3wtOrwL/q9A6HeEqZg= Received: (qmail 90117 invoked by alias); 19 Jan 2018 23:31:33 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 90099 invoked by uid 89); 19 Jan 2018 23:31:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-9.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_ASCII_DIVIDERS, KAM_LAZY_DOMAIN_SECURITY, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy= X-Spam-User: qpsmtpd, 2 recipients X-HELO: troutmask.apl.washington.edu Received: from troutmask.apl.washington.edu (HELO troutmask.apl.washington.edu) (128.95.76.21) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 19 Jan 2018 23:31:31 +0000 Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.15.2/8.15.2) with ESMTPS id w0JNVUed081896 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 19 Jan 2018 15:31:30 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.15.2/8.15.2/Submit) id w0JNVUR6081895; Fri, 19 Jan 2018 15:31:30 -0800 (PST) (envelope-from sgk) Date: Fri, 19 Jan 2018 15:31:30 -0800 From: Steve Kargl To: fortran@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [Committed] PR fortran/80768 -- testcase Message-ID: <20180119233130.GA81860@troutmask.apl.washington.edu> Reply-To: sgk@troutmask.apl.washington.edu MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.2 (2017-12-15) Jakub fixed a typo in ----------------------------------------------------------------------- r250734 | jakub | 2017-07-31 02:32:02 -0700 (Mon, 31 Jul 2017) | 2 lines * check.c (gfc_check_num_images): Fix a pasto. but he seemed to be unaware of PR fortran/80768. I've converted to code form the PR into a testcase. I plan to fix the typo in the 6 and 7-branch as it prevents an ICE. 2018-01-19 Steven G. Kargl PR fortran/80768 * gfortran.dg/num_images_1.f90: New test that tests fix in r250734. Index: gcc/testsuite/gfortran.dg/num_images_1.f90 =================================================================== --- gcc/testsuite/gfortran.dg/num_images_1.f90 (nonexistent) +++ gcc/testsuite/gfortran.dg/num_images_1.f90 (working copy) @@ -0,0 +1,9 @@ +! { dg-do compile } +! { dg-options "-fcoarray=single -std=f2008" } +! PR Fortran/80768 +! Reported by Vittorio Zecca. +program foo + implicit none + integer k5 + k5 = num_images(failed=.false.) ! { dg-error "argument to NUM_IMAGES" } +end program foo