[llvm-bugs] [Bug 37283] New: Assertion failure on openmp task with by reference array

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Apr 28 08:14:36 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=37283

            Bug ID: 37283
           Summary: Assertion failure on openmp task with by reference
                    array
           Product: OpenMP
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Clang Compiler Support
          Assignee: unassignedclangbugs at nondot.org
          Reporter: zahira.ammarguellat at intel.com
                CC: llvm-bugs at lists.llvm.org

The following reproducer fails on an assertion on both Linux and Windows.

ksh-3.2$ cat t1.cpp
#include <stdio.h>

void traverse(int(& p)[1]) {
#pragma omp task
  {
    traverse(p);
  }
}


int main() {
  int root[1] = {1};
#pragma omp parallel
  {
#pragma omp single
    {
      traverse(root);
    }
  }
}

ksh-3.2$ clang -c -fopenmp t1.cpp
Assertion failed: E && hasAggregateEvaluationKind(E->getType()) && "Invalid
aggregate expression to emit", file
D:\IUSERS\zahiraam\llorg_ws\llorg_962_2\llvm\tools\clang\lib\CodeGen\CGExprAgg.cpp,
line 1625
Wrote crash dump file
"C:\Users\zahiraam\AppData\Local\Temp\2\clang.EXE-81caa9.dmp"
LLVMSymbolizer: error reading file: PDB Error: DIA is not installed on the
system

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180428/164d60de/attachment.html>


More information about the llvm-bugs mailing list