Skip to content

[Flang][OpenMP] Crash with map(structure-component) #79478

@kparzysz

Description

@kparzysz

Having a map clause with a structure component leads to a crash.

subroutine foo()
  implicit none

  type t0
    integer :: a0
  end type

  type(t0) :: a

  !$omp target map(a%a0)
  a%a0 = 0
  !$omp end target
end
bbc -o - sep1.f90 -fopenmp

PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.      Program arguments: /work/kparzysz/c/org/bin/bbc -o - sep1.f90 -fopenmp
 #0 0x00007f71a25c81b0 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/work/kparzysz/c/org/bin/../lib/libLLVMSupport.so.19git+0x1c81b0)
 #1 0x00007f71a25c55bf llvm::sys::RunSignalHandlers() (/work/kparzysz/c/org/bin/../lib/libLLVMSupport.so.19git+0x1c55bf)
 #2 0x00007f71a25c5715 SignalHandler(int) Signals.cpp:0:0
 #3 0x00007f71a1c42520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
 #4 0x00007f71a78005e6 Fortran::lower::SymMap::lookupSymbol(Fortran::common::Reference<Fortran::semantics::Symbol const>) (/work/kparzysz/c/org/bin/../lib/libFortranLower.so.19git+0x6005e6)
 #5 0x00007f71a73a1216 (anonymous namespace)::FirConverter::lookupSymbol(Fortran::semantics::Symbol const&, Fortran::lower::SymMap*) Bridge.cpp:0:0
 #6 0x00007f71a73a1c10 (anonymous namespace)::FirConverter::getSymbolExtendedValue(Fortran::semantics::Symbol const&, Fortran::lower::SymMap*) Bridge.cpp:0:0
 #7 0x00007f71a7796be9 genTargetOp(Fortran::lower::AbstractConverter&, Fortran::lower::pft::Evaluation&, Fortran::semantics::SemanticsContext&, bool, mlir::Location, Fortran::parser::OmpClauseList const&, llvm::omp::Directive, bool) (.constprop.0) OpenMP.cpp:0:0
[...]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions