Issue 175620
Summary [Flang] Module name should not be the same as local name in the module.
Labels flang
Assignees
Reporter SunilKuravinakop
    The module name is global to the executable program, and must not be the same as the name of any other program unit, external procedure, or common block in the executable program, nor be the same as any local name in the module.

Reproducer:
fortran programs containing Modules like the following :
```
module your_module
  implicit none
  integer :: n = 2
 integer :: o = 2
  integer :: your_module = 2
end module
```
should result in error according to the fortran standards both f90 and latest Fortran 2028 Working Draft.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to