http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47720
Zaak <zbeekman at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zbeekman at gmail dot com --- Comment #1 from Zaak <zbeekman at gmail dot com> 2011-05-24 18:33:33 UTC --- The page here: http://gcc.gnu.org/wiki/GFortran#GCC4.6 seems to suggest that you need to specify -cpp. I must admit, however, the documentation for this features is a bit murky. I suspect that the module constants shows up three times because it is used in three procedures in the second module. This is by no means a deficiency. If you include this in your makefile it will not cause problems. In fact, make has ways of removing duplicates. gfortran/cpp likely parse your source code and every time they encounter a use statement ad the module(s) mentioned there to the list of dependencies. May I ask what version of gfortran this is? (Trunk build of gfortran from yesterday is a bit ambiguous) The reason I ask is that I am not getting as far as you. on gfortran 4.6.0 if have a program which uses two modules and dependency listing I get is myprog.0: myprog.f90 which is less than helpful.