From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13886 invoked by alias); 14 Jan 2010 21:35:21 -0000 Received: (qmail 13828 invoked by uid 48); 14 Jan 2010 21:35:08 -0000 Date: Thu, 14 Jan 2010 21:35:00 -0000 Message-ID: <20100114213508.13827.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/42677] [4.5 Regression] Bogus Error: Ambiguous interfaces '...' in intrinsic assignment operator In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "janus at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-01/txt/msg01785.txt.bz2 ------- Comment #7 from janus at gcc dot gnu dot org 2010-01-14 21:35 ------- (In reply to comment #2) > I would guess it is due to PR 36947. Yes, I think this is correct. r148519, to be precise. The following patch fixes it: Index: interface.c =================================================================== --- interface.c (revision 155865) +++ interface.c (working copy) @@ -986,8 +986,7 @@ gfc_compare_interfaces (gfc_symbol *s1, gfc_symbol } } - if (s1->attr.if_source == IFSRC_UNKNOWN - || s2->attr.if_source == IFSRC_UNKNOWN) + if (s1->attr.if_source == IFSRC_UNKNOWN) return 1; f1 = s1->formal; I haven't checked this for regressions. Also I'm not sure if there might be a more appropriate way to fix it. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42677