------- Comment #9 from mikael at gcc dot gnu dot org  2010-08-01 22:29 -------
Created an attachment (id=21367)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21367&action=view)
Tentative patch

I will test & submit this tomorrow. 

I have decided to use gfc_commit_symbol (sym) instead of the full
gfc_commit_symbols to minimize interference with changed_sym in both parsing
mode and resolution mode (just in case someone wants to use the functions in
the other mode in the future). 

The remaining testcases were missing a reject_statement () or gfc_undo_symbol
thrown together with the error. The patch also corrects others cases in the
affected functions that may prove wrong in the future.


-- 


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

Reply via email to