This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/17741] ICE in gfc_free_namespace, at fortran/symbol.c:2208
- From: "jvdelisle at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Oct 2006 00:09:39 -0000
- Subject: [Bug fortran/17741] ICE in gfc_free_namespace, at fortran/symbol.c:2208
- References: <bug-17741-7427@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from jvdelisle at gcc dot gnu dot org 2006-10-22 00:09 -------
Created an attachment (id=12472)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12472&action=view)
A prelimary patch as one concept for handling this
This patch gives a good result for error messages. However we are still left
with some memory leak. I will have to explore this some more. The concept is
to reset the locus and then return the correct end statement after emitting the
error message. Whats nice about this is it gives errors for all the nested
statements missing the correct "END"
Comments anyone?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17741