From patchwork Wed Jun 19 00:20:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Kargl X-Patchwork-Id: 1118389 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-503236-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=troutmask.apl.washington.edu 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 45T5G41PPqz9sCJ for ; Wed, 19 Jun 2019 10:20:58 +1000 (AEST) 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=nZN07WqdMgYUkpUPnUc8sVph9XXyROGox4W1z5P9lvh HHw+FF15qf2FkfBOAfB5dJz+LrC2H5W2K9hBhhYSQhHdGbxiGX+1pj3p2+JaAYvD 9TBAW5e2EXoJMfLzty7MAs5yLjn1sLMv4sITTzp6TzuI6rjvGDvK3s9y7LL2Q1Hc = 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=lJcEtKuewbmu98YdNfg1rNcCvZU=; b=OXEoPJSLxYZYuvqTS zKOYMVzNnRXORUkIAgAEi6Q0D2x37upvvTIfKdsfKRXPazjtjinxM2p6JJV26YwJ or5ps4buqKS1nMEswZTB0V/AUaZZnBrFp8dpMrm9DGCeW6HTam0OZ+1r1/U4dUbp 7Pp/vR3WRzSm1Is5wTqmPvDsY0= Received: (qmail 21928 invoked by alias); 19 Jun 2019 00:20:46 -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 21913 invoked by uid 89); 19 Jun 2019 00:20:46 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=AWL, BAYES_00 autolearn=ham version=3.3.1 spammy=HX-Languages-Length:754 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; Wed, 19 Jun 2019 00:20:45 +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 x5J0Kgb1021037 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Tue, 18 Jun 2019 17:20:42 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.15.2/8.15.2/Submit) id x5J0KgBk021036; Tue, 18 Jun 2019 17:20:42 -0700 (PDT) (envelope-from sgk) Date: Tue, 18 Jun 2019 17:20:42 -0700 From: Steve Kargl To: fortran@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [PATCH] PR fortran/69398 -- Duplicate dimensions and CLASS Message-ID: <20190619002042.GA16928@troutmask.apl.washington.edu> Reply-To: sgk@troutmask.apl.washington.edu MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.11.4 (2019-03-13) The attach patch fixes an issue where a CLASS entity is specified with duplicate dimension. See the testcase for an exmaple. Regression tested on x86_64-*-freebsd. OK to commit? 2019-06-18 Steven G. Kargl PR fortran/69398 * decl.c (attr_decl): Check for duplicate DIMENSION attribute for a CLASS entity. 2019-06-18 Steven G. Kargl PR fortran/69398 * gfortran.dg/pr69398.f90: New test. 2019-06-18 Steven G. Kargl PR fortran/69398 * decl.c (attr_decl): Check for duplicate DIMENSION attribute for a CLASS entity. 2019-06-18 Steven G. Kargl PR fortran/69398 * gfortran.dg/pr69398.f90: New test.