From patchwork Sat Jan 30 14:16:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Dominique_d=27Humi=C3=A8res?= X-Patchwork-Id: 575991 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 B1F6B14056B for ; Sun, 31 Jan 2016 01:16:36 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=bKmy8b7Q; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :content-type:content-transfer-encoding:subject:date:message-id :cc:to:mime-version; q=dns; s=default; b=MAVYEzlY2ItPCDz7E4QelmE xlk6UDh4gbsOkuxnXMogGIukTkP2y+EznoEvQxg5289k54d0lI366GBG9eSaApq/ gd+Hi7TwODyuxsaiNzRGuzUD17qegUmcCPlEAyzTuarhcP68ZJ19VxYcY65zcvZq wwvcQhRhvDrrVU5zZQGo= 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:from :content-type:content-transfer-encoding:subject:date:message-id :cc:to:mime-version; s=default; bh=ZPiR7p1wUr4sFvdB3XNMSCX/4j8=; b= bKmy8b7Q5Ks+2Yv22sWfcWFvN0YUjbjrTHr/FJRby5OmV2d6qPnY5cPNNQY8MusZ fjqVih3S2tivBGEAKk6i+yDuKGcfTsD/hMsRjsUcDvldozqojO9dwP1ydqKsiXNW HUToeuIvYGlg7muxu3tlKbq5GvfJYbDGox1g3IH6zXY= Received: (qmail 39933 invoked by alias); 30 Jan 2016 14:16:25 -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 39907 invoked by uid 89); 30 Jan 2016 14:16:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.4 required=5.0 tests=AWL, BAYES_05, KAM_ASCII_DIVIDERS, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=tia, TIA, gerhardsteinmetzfortrantonlinede, gerhard.steinmetz.fortran@t-online.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, 30 Jan 2016 14:16:23 +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 u0UEGIj3031331 ; Sat, 30 Jan 2016 15:16:19 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mailhost.lps.ens.fr (Postfix) with ESMTP id DCC38157; Sat, 30 Jan 2016 15:16:18 +0100 (CET) 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 WHF-LyPD3yWO; Sat, 30 Jan 2016 15:16:18 +0100 (CET) Received: from [192.168.1.11] (log78-1-82-242-47-10.fbx.proxad.net [82.242.47.10]) by mailhost.lps.ens.fr (Postfix) with ESMTPSA id A0CC0155; Sat, 30 Jan 2016 15:16:18 +0100 (CET) From: =?utf-8?Q?Dominique_d=27Humi=C3=A8res?= Subject: [Committed] New test for PR 66707 - Endless compilation on wrong usage of common Date: Sat, 30 Jan 2016 15:16:18 +0100 Message-Id: <51B0F810-BF82-44E5-8A2C-E02EDC97084C@lps.ens.fr> Cc: jmdavis@link.com, Mikael Morin , gcc-patches To: fortran@gcc.gnu.org Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) AFAICT PR 66707 has been fixed/ prevented/hidden by revision r226732. I have committed the following as obvious I have tested (on x86_64-apple-darwin15) that revision r226732 can be trivially back ported to the gcc5 branch. Is it OK to do this back port? TIA Dominique Index: gcc/testsuite/ChangeLog =================================================================== --- gcc/testsuite/ChangeLog (revision 233007) +++ gcc/testsuite/ChangeLog (working copy) @@ -1,3 +1,8 @@ +2016-01-30 Dominique d'Humieres + + PR fortran/66707 + gfortran.dg/common_23.f90: New test. + 2016-01-29 Bill Schmidt PR target/65546 Index: gcc/testsuite/gfortran.dg/common_23.f90 =================================================================== --- gcc/testsuite/gfortran.dg/common_23.f90 (nonexistent) +++ gcc/testsuite/gfortran.dg/common_23.f90 (working copy) @@ -0,0 +1,10 @@ +! { dg-do compile } +! +! PR fortran/66707 +! Check the compilation on wrong usage of common +! Contributed by Gerhard Steinmetz +program p + integer, pointer :: a + common a, a ! { dg-error "is already in a COMMON block" } + common a +end