------- 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