Issue 239944
Summary [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`
Labels flang:frontend, crash, generated by fuzzer
Assignees
Reporter YuanchengJiang
    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)
```

Trunk reproducer (`-fsyntax-only -fopenacc`): https://godbolt.org/z/8qraW397P
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to