Issue 97398
Summary Flang-new trying to access the imported module inside the `.mod` file
Labels flang:runtime, flang
Assignees
Reporter Thirumalai-Shaktivel
    Reproducible files are available here, [module-bug.tar.gz](https://github.com/user-attachments/files/16065435/module-bug.tar.gz)

MRE:
```fortran
program app

  use circle, only : area
  implicit none
  real :: r

  r = 2.0
  write(*,*) 'radius = ', r
  write(*,*) 'area = ', area(r)

end program app
```
Flang-new
```console
$ ./build.sh
error: Semantic errors in app.f90
../libdummy/include/circle.mod:4:5: error: Cannot read module file for module 'constant_pi': Source file 'constant_pi.mod' was not found
 use constant_pi,only:get_pi
 ^^^^^^^^^^^
```

GFortran
```console
$ ./build.sh
 radius = 2.00000000    
 area =    12.5663710
```

_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to