From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32637 invoked by alias); 11 Sep 2018 11:14:46 -0000 Mailing-List: contact fortran-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: fortran-owner@gcc.gnu.org Received: (qmail 32568 invoked by uid 89); 11 Sep 2018 11:14:39 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy= X-HELO: mail-yb1-f195.google.com Received: from mail-yb1-f195.google.com (HELO mail-yb1-f195.google.com) (209.85.219.195) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 11 Sep 2018 11:14:38 +0000 Received: by mail-yb1-f195.google.com with SMTP id v10-v6so1485580ybm.8; Tue, 11 Sep 2018 04:14:37 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Janus Weil Date: Tue, 11 Sep 2018 11:14:00 -0000 Message-ID: Subject: Re: [Patch, Fortran] PR 87172: [9 Regression] Spurious "Derived type 'c_funptr' at (1) has not been declared" error after r263782 To: gfortran , gcc-patches Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2018-09/txt/msg00089.txt.bz2 ping! Am Mo., 3. Sep. 2018 um 21:19 Uhr schrieb Janus Weil : > > Hi all, > > attached is a simple patch that fixes a regression which was > introduced by one of my recent commits (spotted by Dominique). > > My first impulse to fix the spurious error was to check for the > 'intrinsic' attribute, however it is actually not set (yet?) in > resolve_fl_derived, so the next-best thing is to check for > 'use_assoc'. That is probably even better, since it's more general. > Obviously, if a type has the 'use_assoc' attribute, then it has been > declared in another module, so there is no need to complain that it > was not declared. > > The patch regtests cleanly on x86_64-linux-gnu. Ok for trunk? > > Cheers, > Janus