From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2761 invoked by alias); 12 Aug 2010 19:55:28 -0000 Received: (qmail 2699 invoked by uid 48); 12 Aug 2010 19:55:14 -0000 Date: Thu, 12 Aug 2010 19:55:00 -0000 Subject: [Bug fortran/45271] New: [OOP] Polymorphic code breaks when changing order of USE statements X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "anlauf at gmx dot de" 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-08/txt/msg01047.txt.bz2 Hi, the attached code fails at runtime as follows: % ./a.out calling cg... cg: before g%assign Oops in concrete_vector::my_assign : wrong type Interchanging the indicated use statements in the main program leads to: % ./a.out calling cg... cg: before g%assign cg: after g%assign after cg... The code works flawlessly with nagfor 5.2, xlf 12.1 and xlf 13.1. Cheers, ha -- Summary: [OOP] Polymorphic code breaks when changing order of USE statements Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: anlauf at gmx dot de http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45271