This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 27 Dec 2015 12:34:30 +0000
- Subject: [Bug fortran/69064] Unhelpful error message when a module variable was not included in the only list
- Auto-submitted: auto-generated
- References: <bug-69064-4 at http dot gcc dot gnu dot org/bugzilla/>
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?