From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 99316 invoked by alias); 9 Aug 2018 21:36:50 -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 99304 invoked by uid 89); 9 Aug 2018 21:36:49 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*Ad:D*nasa.gov, H*c:alternative X-HELO: mail-wr1-f41.google.com Received: from mail-wr1-f41.google.com (HELO mail-wr1-f41.google.com) (209.85.221.41) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 09 Aug 2018 21:36:48 +0000 Received: by mail-wr1-f41.google.com with SMTP id c13-v6so6438416wrt.1 for ; Thu, 09 Aug 2018 14:36:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceryinstitute.org; s=google; h=mime-version:from:date:message-id:subject:to:cc; bh=+h6a2PA2ThG7yc8Ob0xVNo6AnAy/ed+gllp1gOFEojM=; b=jFEG9kZTvUZAXWRc0bHW6dO7Ur1JLg0/nHl+fJq3ypT3E2a95XHe96X1I2BVvM8cWg lJITjDS+RQQmMw7RipzCkuGBrfIXlM9WGfyd2rgdabWPGPu7C2GuebHvG8VO00xYuAO0 Zc5Ft3/yi3VS1D/SkZOK5N/Ivc+65eQvQnJ1218E3jwcQiYgzmlvg3jZ3ngZSN8iuSCT LoHkxVooE0yXTJ7kAeZLO9l9ldC8Ih1XO/cLA/p7GvKH925AmxB853xjJn4EVb2oLPNm Cd4QR7ZLDPisLdwBhJ15cFb8LK9pzJ1W4BCJ2JbDddggNuY19ckK4Pa1wReoti3shbTH C5Vw== MIME-Version: 1.0 Received: by 2002:adf:e6cc:0:0:0:0:0 with HTTP; Thu, 9 Aug 2018 14:36:45 -0700 (PDT) From: Damian Rouson Date: Thu, 09 Aug 2018 21:36:00 -0000 Message-ID: Subject: Bug 86906 - erroneous name clash with renaming in use statement To: gfortran Cc: "Clune, Thomas L. (GSFC-6101)" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2018-08/txt/msg00045.txt.bz2 gfortran 6.4, 7.3, and 8.2 all produce the error message below when attempting to use a renamed type in the same scope as the variable that motivated the renaming: $ cat foo.f90 module foo type config end type end module use foo, only: foo_config =3D> config contains subroutine cap integer config type(foo_config) extra end subroutine end $ gfortran foo.f90 foo.f90:9:26: integer config 2 type(foo_config) extra 1 Error: The type =E2=80=98config=E2=80=99 cannot be host associated at (1) b= ecause it is blocked by an incompatible object of the same name declared at (2) $ gfortran --version GNU Fortran (GCC) 8.2.0