This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list


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

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2015-12-27
     Ever confirmed|0                           |1

--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
With the attached "preprocessed" test I get

 CONTAINS
    1

Fatal Error: Can't open module file 'read_nestle_in_mod.mod' for reading at
(1): No such file or directory

If I remove the useless lines

# 1 "src/read_input_mod.f90"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "src/read_input_mod.f90"

I get

 USE READ_NESTLE_IN_MOD
    1

Fatal Error: Can't open module file 'read_nestle_in_mod.mod' for reading at
(1): No such file or directory

which is expected since you did not provide the file containing the module
READ_NESTLE_IN_MOD. Could you please provide a test not failing for trivial
reasons such as missing modules?

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]