This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/24223] Gfortran crashes in two places
- From: "paul dot richard dot thomas at cea dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Nov 2005 14:46:11 -0000
- Subject: [Bug fortran/24223] Gfortran crashes in two places
- References: <bug-24223-9702@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from paul dot richard dot thomas at cea dot fr 2005-11-10 14:46 -------
A give-away here is that inverting the order of the equivalence members, makes
the problem go away. The path below cures the problem but I have not regtested
yet.....
Paul T
Index: gcc/gcc/fortran/trans-decl.c
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/fortran/trans-decl.c,v
retrieving revision 1.73
diff -c -p -r1.73 trans-decl.c
*** gcc/gcc/fortran/trans-decl.c 25 Oct 2005 14:06:22 -0000 1.
--- gcc/gcc/fortran/trans-decl.c 10 Nov 2005 14:43:51 -0000
*************** gfc_create_module_variable (gfc_symbol *
*** 2297,2303 ****
return;
/* Equivalenced variables arrive here after creation. */
! if (sym->backend_decl && sym->equiv_built)
return;
if (sym->backend_decl)
--- 2297,2303 ----
return;
/* Equivalenced variables arrive here after creation. */
! if (sym->backend_decl && (sym->equiv_built || sym->attr.in_equivalence
return;
if (sym->backend_decl)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24223