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: unassignedclangb...@nondot.org
          Reporter: jennifer...@intel.com
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to