From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17853 invoked by alias); 28 Jul 2013 04:02:56 -0000 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 Received: (qmail 17744 invoked by uid 48); 28 Jul 2013 04:02:51 -0000 From: "shapero at uw dot edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/58007] New: ICE -- free_pi_tree(): Unresolved fixup, depends on order of module inclusion Date: Sun, 28 Jul 2013 04:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.7.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: shapero at uw dot edu X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-07/txt/msg01358.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58007 Bug ID: 58007 Summary: ICE -- free_pi_tree(): Unresolved fixup, depends on order of module inclusion Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: major Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: shapero at uw dot edu I have a moderate-size code I've been developing in Fortran 2003. I've tried to reproduce it with small test cases to no avail -- perhaps I can give a link to my git repository with instructions? The following should work just fine: git clone https://github.com/danshapero/fempack.git git checkout e7547abe131b5c0e137fb0327069a75fcfed5d90 make libs However, make the following change to src/linalg/linalg.f90: - use bsr use ellpack use csr + use bsr and the following error results: Internal Error at (1): free_pi_tree(): Unresolved fixup make: *** [src/linalg/linalg.o] Error 1 If it makes a difference, I'm using polymorphism somewhat extensively. I've seen the following bug reports with similar behavior before: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47546 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47601 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53015 In 47546, it's suggested that the error can be fixed by using implicit instead of explicit shape arrays; all my arrays are implicit shape, so it's not that. I'm compiling with just the -J flag; in 53015 it was suggested that using both -I and -J can contribute to the problem. While I might be able to make my code compile by cramming a bunch of modules all together, it would make everything less, well, modular. Not desirable. Hope the instructions were helpful and thanks for the help!