This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, fortran] PR17741 - ICE in gfc_free_namespace, at fortran/symbol.c:2208
- From: "François-Xavier Coudert" <fxcoudert at gmail dot com>
- To: "Paul Thomas" <paulthomas2 at wanadoo dot fr>
- Cc: fortran at gcc dot gnu dot org, patch <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 11 May 2006 22:14:35 +0200
- Subject: Re: [Patch, fortran] PR17741 - ICE in gfc_free_namespace, at fortran/symbol.c:2208
- References: <446396FE.9080501@wanadoo.fr>
PR fortran/17741
* symbol.c(gfc_free_namespace): If the number of refs is
zero or less, emit an error and return instead of ICEing.
Your patch doesn't apply cleanly. When patching myself, I get
$ gfortran pr17741.f90
In file pr17741.f90:4
end subroutine
1
Error: Expecting END FUNCTION statement at (1)
Error: Unexpected end of file in 'pr17741.f90'
Error: namespace bar has 0 references on being freed
This isn't user-friendly at all. Is that only a short-term fix, or do
you plan to keep this message in place?
FX