Currently, there are only strange parenthesis-related error messages given if an old, incompatible .mod file is used with a newer compiler, e.g. Fatal Error: Reading module mmm at line 16 column 65: Expected left parenthesis (cf. also PR 38248). The solution is to add a version number which is always bumped if a .mod related change happened, which presumably was the case for all new GCC/gfortran releases.
Could come in handy, especially if people start to distribute module files.
Created attachment 16867 [details] first patch This was starting to rot on my computer.
*** Bug 38993 has been marked as a duplicate of this bug. ***
Jakub and Richard proposed on #gcc that this feature should still go into 4.4, I agree. (In reply to comment #2) > Created an attachment (id=16867) [edit] > first patch The patch is pre-approved. (I personally had started with version 1 instead of 0, but it really doesn't matter.)
Subject: Bug 38259 Author: burnus Date: Fri Feb 13 22:16:20 2009 New Revision: 144169 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144169 Log: 2009-02-13 Mikael Morin <mikael.morin@tele2.fr> PR fortran/38259 * module.c (gfc_dump_module,gfc_use_module): Add module version number. Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/module.c
FIXED on the trunk (4.4.0).