[llvm-bugs] [Bug 44578] New: 'omp target' directive segfaults Clang with std=c++11

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jan 17 04:50:34 PST 2020


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

            Bug ID: 44578
           Summary: 'omp target' directive segfaults Clang with std=c++11
           Product: clang
           Version: 9.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: OpenMP
          Assignee: unassignedclangbugs at nondot.org
          Reporter: gcc.j.kelling at hzdr.de
                CC: llvm-bugs at lists.llvm.org

Created attachment 23022
  --> https://bugs.llvm.org/attachment.cgi?id=23022&action=edit
source, output, clang commandline, temps

The attached code ( templateInt.cpp ), invoking a version of the later
std::invoke inside an omp target region crashes clang when compiled with the
command line:

clang++  -fopenmp -fopenmp=libomp -fopenmp-targets=x86_64-pc-linux-gnu
-stdlib=libc++ --save-temps -fopenmp=libomp -g   -std=gnu++11 templateInt.cpp

It does compile with std=c++14, but it is c++11 compliant (note, that
BOOST_NO_CXX14_RETURN_TYPE_DEDUCTION is defined and thus trailing return types
are given for auto functions).

This crash looks similar to [1] but is different. Compiling the code crashing
example from [1] with the above commandline does succeed.

[1] https://bugs.llvm.org/show_bug.cgi?id=43771

-- 
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/20200117/d43eb9f6/attachment.html>


More information about the llvm-bugs mailing list