peter klausler 0bfa4ac6c6 [flang] Improve "Error reading module file" error message
Instead of using a message attachment with further details,
emit the details as part of a single message.

Differential Revision: https://reviews.llvm.org/D96465
2021-02-11 11:08:12 -08:00

26 lines
472 B
Fortran

! RUN: %S/test_errors.sh %s %t %f18
module m1
interface
module subroutine s()
end subroutine
end interface
end
module m2
interface
module subroutine s()
end subroutine
end interface
end
submodule(m1) s1
end
!ERROR: Cannot read module file for submodule 's1' of module 'm2': Source file 'm2-s1.mod' was not found
submodule(m2:s1) s2
end
!ERROR: Cannot read module file for module 'm3': Source file 'm3.mod' was not found
submodule(m3:s1) s3
end