This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/33375] ICE (segfault) gfortran.dg/common_6.f90
- From: "hjl at lucon dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Jan 2008 04:57:39 -0000
- Subject: [Bug fortran/33375] ICE (segfault) gfortran.dg/common_6.f90
- References: <bug-33375-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from hjl at lucon dot org 2008-01-07 04:57 -------
gfc_undo_symbols has
for (p = changed_syms; p; p = q)
{
q = p->tlink;
if (p->new)
{
/* Symbol was new. */
delete_symtree (&p->ns->sym_root, p->name);
p->refs--;
if (p->refs < 0)
gfc_internal_error ("gfc_undo_symbols(): Negative refs");
if (p->refs == 0)
gfc_free_symbol (p);
continue;
}
"P" is freed. But it still accessible by resolve_common_vars somehow.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33375