You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[flang][OpenACC] host_data use_device(obj%comp) on a variable of an extended derived type: nullptr dereference at type.cpp(716) in InstantiateHelper::CreateDerivedTypeSpec #239944
subroutines(obj)
type :: t2
integer:: x
end type
type, extends(t2) :: t
real:: y
end type
type(t) :: obj
!$acc host_data use_device(obj%y)
!$acc end host_data
end
Resulted in this output:
fatal internal error: nullptr dereference at /root/llvm-project/flang/lib/Semantics/type.cpp(721)
Details
The following code:
```fortran
subroutine s(obj)
type :: t2
integer :: x
end type
type, extends(t2) :: t
real :: y
end type
type(t) :: obj
!$acc host_data use_device(obj%y)
!$acc end host_data
end
```
Resulted in this output:
fatal internal error: nullptr dereference at /root/llvm-project/flang/lib/Semantics/type.cpp(721)
Activity
llvmorg-github-actions commentedon Nov 7, 2026
@llvm/issue-subscribers-flang-frontend
Author: Jiang Yuancheng (YuanchengJiang)
Details
The following code: ```fortran subroutine s(obj) type :: t2 integer :: x end type type, extends(t2) :: t real :: y end type type(t) :: obj !$acc host_data use_device(obj%y) !$acc end host_data end ```Resulted in this output:
Trunk reproducer (
-fsyntax-only -fopenacc): https://godbolt.org/z/8qraW397P