[Bug fortran/45125] ICE with -fwhole-file

2010-07-29 Thread burnus at gcc dot gnu dot org
--- Comment #6 from burnus at gcc dot gnu dot org 2010-07-29 21:08 --- FIXED on the trunk (4.6). -- burnus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/45125] ICE with -fwhole-file

2010-07-29 Thread burnus at gcc dot gnu dot org
--- Comment #5 from burnus at gcc dot gnu dot org 2010-07-29 21:07 --- Subject: Bug 45125 Author: burnus Date: Thu Jul 29 21:07:34 2010 New Revision: 162696 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=162696 Log: 2010-07-29 Tobias Burnus PR fortran/45087 P

[Bug fortran/45125] ICE with -fwhole-file for subref_array_pointer

2010-07-29 Thread burnus at gcc dot gnu dot org
--- Comment #4 from burnus at gcc dot gnu dot org 2010-07-29 14:42 --- Sorry that comment 3 and the change was supposed to go to PR 45128. I think the PR here is relatively easily fixable. -- burnus at gcc dot gnu dot org changed: What|Removed |Ad

[Bug fortran/45125] ICE with -fwhole-file

2010-07-29 Thread burnus at gcc dot gnu dot org
--- Comment #3 from burnus at gcc dot gnu dot org 2010-07-29 14:40 --- The segfault occurs for: l.4768 gfc_add_modify (&lse.post, GFC_DECL_SPAN(decl), tmp); It seems as if GFC_DECL_SPAN(decl) access a NULL pointer. That's decl->decl_common.lang_specific->span where lang_s

[Bug fortran/45125] ICE with -fwhole-file

2010-07-29 Thread dominiq at lps dot ens dot fr
--- Comment #2 from dominiq at lps dot ens dot fr 2010-07-29 12:19 --- The patch in comment #1 fixes the ICE, but AFAICT (due to other patches in my tree) make an error message to disappear in pr44348, pr44614, and pr44616: [macbook] f90/bug% cat pr44614.f90 module factory_pattern impl

[Bug fortran/45125] ICE with -fwhole-file

2010-07-29 Thread mikael at gcc dot gnu dot org
--- Comment #1 from mikael at gcc dot gnu dot org 2010-07-29 10:25 --- Confirmed. Workaround: trans-decl.c b/trans-decl.c index d5be2e4..14e78a4 100644 --- a/trans-decl.c +++ b/trans-decl.c @@ -1457,7 +1457,10 @@ gfc_get_extern_function_decl (gfc_symbol * sym) /* Avoid probl