This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Fortran-Experiments]: patch
Hi Chris,
Christopher D. Rickett wrote:
> I just checked the patch i sent on Feb. 24, and it does include the
> gfc_verify_binding_labels function, so it should report the above code
> as an error. Tobias: i guess i'm not sure why the above is still
> being accepted by your copy; it's not accepted by my copy of gfortran.
Here, it is rejected if I put both modules into the same Fortran file: I
get an error already when compiling the second module. That really works
well!
But, if I put the two modules in separated files and compile them
separately (gfortran -c module1.f90; gfortran -c module2.f90; gfortran
-c main.f90), no error is shown. (There should be one at the second
"USE" in the main program.)
Tobias