From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1253 invoked by alias); 7 Oct 2007 19:40:32 -0000 Received: (qmail 1231 invoked by uid 22791); 7 Oct 2007 19:40:32 -0000 X-Spam-Check-By: sourceware.org Received: from vms044pub.verizon.net (HELO vms044pub.verizon.net) (206.46.252.44) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 07 Oct 2007 19:40:28 +0000 Received: from quasar.localdomain ([71.115.219.45]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JPK00ABU3YJ47J2@vms044.mailsrvcs.net>; Sun, 07 Oct 2007 14:39:56 -0500 (CDT) Date: Sun, 07 Oct 2007 19:40:00 -0000 From: Jerry DeLisle Subject: Re: [Patch, fortran] PR33542 - gfortran does not detect ambigious specific names if they are the same as generic names In-reply-to: <339c37f20710071201p594ed61ex33a4337e2d164ee6@mail.gmail.com> To: Paul Richard Thomas Cc: "fortran@gcc.gnu.org" , gcc-patches List Message-id: <470935BD.206@verizon.net> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit References: <339c37f20710071201p594ed61ex33a4337e2d164ee6@mail.gmail.com> User-Agent: Thunderbird 2.0.0.5 (X11/20070727) 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 X-SW-Source: 2007-10/txt/msg00378.txt.bz2 Paul Richard Thomas wrote: > :ADDPATCH fortran: > > This is the obvious version of the 'obvious' patch that wasn't. Sorry > about the last mess. > > The general rule is that use associated symbols can be ambiguous just > as long as they are not referenced. This is done so that other > symbols may be used from these modules that are not ambiguous, without > necessitating only clauses. > > In the case of this PR, the symtree for 'foo' is ambiguous, where > there are two identically named specific procedures. Thus, the trick > is to make sure this is detected when resolving the actual argument. > The testcase is the original.. > > This time, I have tested tonto-2.3 with the patch, as well as > bootstrapping and regtesting. > > OK for trunk? > > Paul > > 2007-10-07 Paul Thomas > > PR fortran/33542 > * resolve.c (resolve_actual_arglist): If the actual argument is > ambiguous, then there is an error. > > 2007-10-07 Paul Thomas > > PR fortran/33542 > * gfortran.dg/ambiguous_specific_1.f90: New test. > > > OK