[llvm-bugs] [Bug 44133] New: compiler error omp declare reduction inside of template function

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Nov 25 03:57:32 PST 2019


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

            Bug ID: 44133
           Summary: compiler error omp declare reduction inside of
                    template function
           Product: OpenMP
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Clang Compiler Support
          Assignee: unassignedclangbugs at nondot.org
          Reporter: steffen.seckler at tum.de
                CC: llvm-bugs at lists.llvm.org

When compiling the attached file with

clang++-9 -fopenmp -std=c++17 test.cpp

I get a segmentation fault inside of clang.

This happens when I try to declare an omp reduction inside of a template
function.

If I move the declaration outside of the template function the code compiles.

-- 
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/20191125/2a221da9/attachment.html>


More information about the llvm-bugs mailing list