[llvm-bugs] [Bug 50206] New: clang assert on the constexpr variable of omp clause is not marked as used
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon May 3 09:20:25 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=50206
Bug ID: 50206
Summary: clang assert on the constexpr variable of omp clause
is not marked as used
Product: OpenMP
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Clang Compiler Support
Assignee: unassignedclangbugs at nondot.org
Reporter: jennifer.yu at intel.com
CC: llvm-bugs at lists.llvm.org
Created attachment 24823
--> https://bugs.llvm.org/attachment.cgi?id=24823&action=edit
Test to reproduce the problem.
Attached test assert in clang
cmplrllvm-27165>clang -cc1 -fopenmp -fopenmp-version=50
-fopenmp-targets=x86_64-pc-linux-gnu -x c++ -emit-llvm -o - j1.cpp
clang: /localdisk2/jyu2/git/llorg/llvm/clang/lib/CodeGen/CGExpr.cpp:2765:
clang::CodeGen::LValue clang::CodeGen::CodeGenFunction::EmitDeclRefLValue(const
clang::DeclRefExpr*): Assertion `(ND->isUsed(false) || !isa<VarDecl>(ND) ||
E->isNonOdrUse() || !E->getLocation().isValid()) && "Should not use decl
without marking it used!"' failed.
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: clang -cc1 -fopenmp -fopenmp-version=50
-fopenmp-targets=x86_64-pc-linux-gnu -x c++ -emit-llvm -o - j1.cpp
1. <eof> parser at end of file
2. Per-file LLVM IR generation
3. j1.cpp:4:6: Generating code for declaration 'test'
--
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/20210503/a38351e6/attachment-0001.html>
More information about the llvm-bugs
mailing list