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