[llvm-bugs] [Bug 45231] New: Crash using -fopenmp -fopenmp-targets -std=c++17

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Mar 17 14:08:53 PDT 2020


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

            Bug ID: 45231
           Summary: Crash using -fopenmp -fopenmp-targets -std=c++17
           Product: OpenMP
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Clang Compiler Support
          Assignee: unassignedclangbugs at nondot.org
          Reporter: david.pagan at intel.com
                CC: llvm-bugs at lists.llvm.org

Test case: t.cpp

#include<cmath>
int main() {   return 0;  }

Compilation command line: 

clang -fopenmp -fopenmp-targets=x86_64 -std=c++17 t.cpp

.
.
.
llvm::sys::PrintStackTrace(llvm::raw_ostream&)
.
.
.
clang::Sema::getEmissionStatus(clang::FunctionDecl*)
clang::Sema::diagIfOpenMPDeviceCode(clang::SourceLocation, unsigned int)
clang::Sema::targetDiag(clang::SourceLocation, unsigned int)
clang::Sema::checkOpenMPDeviceExpr(clang::Expr const*)


In getEmissionStatus(), FD (passed as getCurFunctionDecl()) is null.

NOTE: Only occurs with -std=c++17

-- 
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/20200317/94c19993/attachment.html>


More information about the llvm-bugs mailing list