From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32271 invoked by alias); 26 Jul 2012 14:52:49 -0000 Received: (qmail 32260 invoked by uid 22791); 26 Jul 2012 14:52:48 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED 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; Thu, 26 Jul 2012 14:52:35 +0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/54096] Type bound procedures Date: Thu, 26 Jul 2012 14:52: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: burnus at gcc dot gnu.org X-Bugzilla-Status: WAITING 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" 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-07/txt/msg01986.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54096 --- Comment #7 from Tobias Burnus 2012-07-26 14:52:33 UTC --- (In reply to comment #5) > Created attachment 27878 [details] > source code Compiles here (w/o errors) on x86-64-gnu-linux with gcc version 4.5.3 20110428 [gcc-4_5-branch revision 173117] (SUSE Linux) However, I do get a link error due to a mishandling of the virtual table in the compiler. (That's a bug in GCC 4.5 handling of polymorphic variables "CLASS".) Using GCC 4.6 or 4.8, it compiles and runs, complaining at run time that the input file could not be found. Thus, it seems as if you need at least 4.6.0 though newer 4.6 releases contain some other bugs fixes and 4.7 contains some extra fixes for polymorphism. See http://gcc.gnu.org/wiki/OOP for details. (And for an overview about new features http://gcc.gnu.org/wiki/GFortran#news )