Hello world, working on PR 50690, I noticed a few things which are not quite right in front-end optimization statement walking: - BLOCKs were walked via their namespaces, not directly. This caused out-of-order walking, which was confusing. - current_ns was not marked static. - ASSOCIATE lists were not walked. This patch corrects these things. Regression-tested. OK for trunk? (I will not be able to commit for a few days due to business travel, unless somebody is _really_ fast :-) Thomas 2011-10-16 Thomas Koenig * frontend-passes.c (current_ns): Make static. (create_var): Note parent of newly created namespace. (optimize_namespace): Don't wak sibling namespaces if they are EXEC_BLOCK because this is handled... (gfc_code_walker): ... here. Also walk ASSOCIATE lists.