From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20275 invoked by alias); 25 Jan 2012 11:17:11 -0000 Received: (qmail 20266 invoked by uid 22791); 25 Jan 2012 11:17:10 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 25 Jan 2012 11:16:58 +0000 From: "jilfa12 at yahoo dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/51995] Polymorphic class fails at runtime Date: Wed, 25 Jan 2012 11:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jilfa12 at yahoo dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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: 2012-01/txt/msg02897.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D51995 --- Comment #4 from Prince 2012-01-25 11:16:29 U= TC --- Thanks Dominiq. I tested the program on i686 GNU/Linux running on Ubuntu-Maverick using gcc version 4.7.0 20120118 (experimental) (GCC). Using ifort 12, it gives the correct results. So it is definitely a bug in gfortran. Do you have any work-around? ________________________________ From: dominiq at lps dot ens.fr To: jilfa12@yahoo.com=20 Sent: Wednesday, January 25, 2012 12:59 PM Subject: [Bug fortran/51995] Polymorphic class fails at runtime http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D51995 --- Comment #1 from Dominique d'Humieres 2012-0= 1-25 10:59:09 UTC --- I confirm that on x86_64-apple-darwin10 from gcc version 4.6.0 20100723 (experimental) [trunk revision 162456] (GCC) up = to now, gfortran gives the following errors for the test pr51995.f90:91.31: =C2=A0 =C2=A0 CALL db_connect%description() =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 1 Error: 'description' at (1) is not a member of the 'connection' structure pr51995.f90:98.31: =C2=A0 =C2=A0 CALL db_connect%description() =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 1 Error: 'description' at (1) is not a member of the 'connection' structure while up to gcc version 4.6.0 20100413 (experimental) [trunk revision 158252] (GCC) it gives pr51995.f90:15.28: =C2=A0 =C2=A0 PROCEDURE(generic_desc), DEFERRED, PASS(self) :: description =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 1 Error: Passed-object dummy argument of 'generic_desc' at (1) must not be POINTER pr51995.f90:82.23: =C2=A0 =C2=A0 USE factory_pattern =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 1 Fatal Error: Can't open module file 'factory_pattern.mod' for reading at (1= ): No such file or directory Also gcc version 4.6.0 20100506 (experimental) [trunk revision 159106] (GCC) gives f951: internal compiler error: in find_typebound_proc_uop, at fortran/symbol.c:5255 Please submit a full bug report, So if it has worked, it looks like a transient.