public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/45271]  New: [OOP] Polymorphic code breaks when changing order of USE statements
@ 2010-08-12 19:55 anlauf at gmx dot de
  2010-08-12 19:56 ` [Bug fortran/45271] " anlauf at gmx dot de
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: anlauf at gmx dot de @ 2010-08-12 19:55 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2010-08-21 15:00 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-12 19:55 [Bug fortran/45271] New: [OOP] Polymorphic code breaks when changing order of USE statements anlauf at gmx dot de
2010-08-12 19:56 ` [Bug fortran/45271] " anlauf at gmx dot de
2010-08-13  8:22 ` janus at gcc dot gnu dot org
2010-08-13  9:30 ` janus at gcc dot gnu dot org
2010-08-13  9:50 ` janus at gcc dot gnu dot org
2010-08-13 12:36 ` janus at gcc dot gnu dot org
2010-08-13 14:25 ` mikael at gcc dot gnu dot org
2010-08-13 14:31 ` janus at gcc dot gnu dot org
2010-08-13 17:23 ` janus at gcc dot gnu dot org
2010-08-15 20:01 ` janus at gcc dot gnu dot org
2010-08-19 13:09 ` janus at gcc dot gnu dot org
2010-08-21 14:51 ` janus at gcc dot gnu dot org
2010-08-21 15:00 ` janus at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).