From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25902 invoked by alias); 18 Jan 2020 12:46:17 -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 25887 invoked by uid 89); 18 Jan 2020 12:46:17 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 spammy=UD:a.f90, H*i:sk:9ab524d, H*f:sk:9ab524d, af90 X-HELO: cc-smtpout2.netcologne.de Received: from cc-smtpout2.netcologne.de (HELO cc-smtpout2.netcologne.de) (89.1.8.212) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 18 Jan 2020 12:46:15 +0000 Received: from cc-smtpin2.netcologne.de (cc-smtpin2.netcologne.de [89.1.8.202]) by cc-smtpout2.netcologne.de (Postfix) with ESMTP id 5D82A125EF; Sat, 18 Jan 2020 13:46:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=netcologne.de; s=nc1116a; t=1579351573; bh=4AWWwiavL7VrlVDCKD+O1MVpPgsdCCEre61IOLJoBbo=; h=Subject:To:Cc:References:From:Message-ID:Date:In-Reply-To:From; b=HD88GccTmbRwz5YlPu3CzdBmyv5saAeyiUoTkKiuBdO7+j15x/3SUReKV3lhD6dyE PuCmhqe6Csvjz/Bu/nWIT4Pwi73R4HP1SF3q5JSUbjYAQUkc5qlhjZNmxb4Mf9rPoc el+ILmrRgrfevrGzMkC6H4xA0lYtuFITgMAGpH2uHB3MYBELbRulrQPH2sT3sS09lb CeEci8eAvWaNFv77RxIV0/zpwZWqXyuRPI0MKcZ89TNvTpqcJPMNUds9nD2k7FMsCz 28cxo/yGqTB+SJ0deo73eDOj/SYz96XXQOU+lWMFnZmn81kM73kCPiz+aIKTZR5PBn CLfAm5vTXBroQ== Received: from localhost (localhost [127.0.0.1]) by cc-smtpin2.netcologne.de (Postfix) with ESMTP id 58C2111E9D; Sat, 18 Jan 2020 13:46:13 +0100 (CET) Received: from [2001:4dd7:ed20:0:6493:3e1e:a184:33f1] (helo=cc-smtpin2.netcologne.de) by localhost with ESMTP (eXpurgate 4.11.6) (envelope-from ) id 5e22fe15-3658-7f0000012729-7f0000018934-1 for ; Sat, 18 Jan 2020 13:46:13 +0100 Received: from linux-p51k.fritz.box (2001-4dd7-ed20-0-6493-3e1e-a184-33f1.ipv6dyn.netcologne.de [IPv6:2001:4dd7:ed20:0:6493:3e1e:a184:33f1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by cc-smtpin2.netcologne.de (Postfix) with ESMTPSA; Sat, 18 Jan 2020 13:46:07 +0100 (CET) Subject: Re: [patch, fortran] Fix PR 44960, accepts invalid reference on function To: Tobias Burnus , sgk@troutmask.apl.washington.edu, Tobias Burnus Cc: "fortran@gcc.gnu.org" , gcc-patches References: <20200117034959.GA76405@troutmask.apl.washington.edu> <20200117144235.GA78187@troutmask.apl.washington.edu> <89c1c162-87b5-30d9-d980-06595aa1e0fa@netcologne.de> <9ab524db-8252-f4f6-fa02-5ef8eb8d8fdb@net-b.de> From: Thomas Koenig Message-ID: <4447f983-9ae2-c422-2f02-8a174af00a4d@netcologne.de> Date: Sat, 18 Jan 2020 12:55:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.0 MIME-Version: 1.0 In-Reply-To: <9ab524db-8252-f4f6-fa02-5ef8eb8d8fdb@net-b.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-SW-Source: 2020-01/txt/msg01097.txt.bz2 Am 18.01.20 um 12:44 schrieb Tobias Burnus: >> function_reference_1.f90:9:8: >> >>     9 | print *, foo(1)%a ! { dg-error "Syntax error" } >>       |        1 >> Error: Syntax error in expression at (1) > > The error message is not helpful at all. Well, yes. It is no better than what we currently have for the slightly different test case type t integer :: a end type t type(t) :: foo external foo print *, foo(1)%a end which is a.f90:6:16: 6 | print *, foo(1)%a | 1 Error: Syntax error in PRINT statement at (1) (but at least that points to the right place). I can see if I can also replace this with something more useful (have to find the place where this is issued first, though). Regards Thomas