http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51727
--- Comment #2 from Tobias Schlüter <tobi at gcc dot gnu.org> 2012-10-05 19:35:36 UTC --- I'm not in a position to test, but write_generic in module.c makes no effort to traverse the tree in a left to right order, i.e. the line write_generic ((gfc_symtree *)st->right); should be moved to the bottom of the function.