https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127591

--- Comment #4 from Stefano Gibellini <daneel at hotmail dot it> ---
(In reply to Steve Kargl from comment #1)
> Uh, so ch28/ contains nine *.f90 and no mention of the order in which to
> compile them.
> 
> % foreach i (*.f90)
> foreach? gfortran15 -c -O $i
> foreach? end
> ch2804_circle_module.f90:3:7:
> 
>     3 |   use shape_module
>       |       1
> Fatal Error: Cannot open module file
> 
> Not a nice outcome.

Hi,

if you examine one of the files:

*result?.txt

you can see the command used for compiling the example:

gfortran ch2805.f90.

A similar command is used for compile the second example:

gfortran ch2903.f90.

For the first example, as specified in the problem description, changing the
first include command in the main program, reproduces the problem.

Reply via email to