[Bug fortran/35474] [4.3/4.4 regression] Reading module file with COMMON and EQUIVALENCE

pault at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat Mar 8 15:11:00 GMT 2008



------- Comment #3 from pault at gcc dot gnu dot org  2008-03-08 15:11 -------
(In reply to comment #2)
> Paul, do you have an idea?
> 
> The ICE happens when reading the .mod for p->u.wsym.sym->name == "i" in
> free_pi_tree:
>   if (p->fixup != NULL)
>     gfc_internal_error ("free_pi_tree(): Unresolved fixup");
> 
> I got somehow lost in module.c when trying to track 'fixup'. See comment 1 for
> your patch which caused the regression. Still, I cannot see anything which is
> obviously wrong.
> 
> Just for fun, I set p->fixup = NULL in mio_symtree_ref (see your patch), then
> one gets the error that COMMON 'c' does not exist.
> 

I have started work on this, as a bit of light relief. Doing the latter,
prevents any members from being added to the COMMON and so it fails to come
into existence.

Oddly, reverting my patch for 32103 by hand does not get rid of the fault:) I
am beginning to think that we need fixups for the common block references to
the symbols... Anyway, I'll make a start on it.

Paul


-- 

pault at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pault at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2008-03-05 15:08:55         |2008-03-08 15:11:14
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35474



More information about the Gcc-bugs mailing list