From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30060 invoked by alias); 13 Jul 2010 09:24:29 -0000 Received: (qmail 29868 invoked by uid 48); 13 Jul 2010 09:24:17 -0000 Date: Tue, 13 Jul 2010 09:24:00 -0000 Message-ID: <20100713092417.29867.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/42385] [OOP] poylmorphic operators do not work In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "sfilippone at uniroma2 dot it" 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-07/txt/msg01350.txt.bz2 ------- Comment #5 from sfilippone at uniroma2 dot it 2010-07-13 09:24 ------- (In reply to comment #4) > Carry on the test case from PR 43945 comment 19 (cf. also PR 43945 comment 30, > 31, 32): > > > As the test case in comment 3 (attachment 21184 [edit]) is different from the one of > PR 43945 comment 19, I add the latter as well: > > Attachment 20927 [edit] compiles with both crayftn and gfortran, but the run-time > result is different; while crayftn has > > Allocated COO succesfully, should now set components > STOP > > with gfortran the result is > > Error: Missing ovverriding impl for allocate in class COO > The two are intended to generate the same error, i.e. resolution to the base specific instead of the overriding one. As far as I can tell the error is caused by having a binding-name => specific-name in the base version; if the base version has just a name (thus binding==specific) the resolution mechanism works. Salvatore -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42385