------- Comment #4 from mikael dot morin at tele2 dot fr  2008-11-02 18:03 
-------
Created an attachment (id=16612)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16612&action=view)
hackish patch

I think I got it. 
When the statement is rejected, all changes are reverted. 
However, the namespace is still holding the expression for len(x) in cl_list. 
So, when resolving len(x) we have a pointer to len's freed symtree. 

This patch solves the problem by adding a old_cl_list field which is copied
back to cl_list if the statement is rejected. 

I'm not sure it is the right way to do it though. 
As an inquiry function, len should always be reachable, whatever happens. 
What's your opinion?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37992

Reply via email to