Issue 175207
Summary [flang] A `NAMELIST` within an `interface` body causes an error
Labels flang
Assignees
Reporter Saldivarcher
    Trying to compile something like:
```
Program test
  real, allocatable :: array(:,:)
  real, pointer :: array_ptr(:)
  interface
     subroutine sub1( array, array_ptr  )
       real array(:,:)
       real, pointer :: array_ptr(:)
       namelist /my_namelist / array, array_ptr
     End subroutine sub1
  end interface
End Program test
```

Leads to an error:
```
error: Semantic errors in simple.f90
./simple.f90:8:32: error: Internal: no symbol found for 'array'
         namelist /my_namelist / array, array_ptr
                                 ^^^^^
./simple.f90:8:39: error: Internal: no symbol found for 'array_ptr'
         namelist /my_namelist / array, array_ptr
 ^^^^^^^^^
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to