[llvm-bugs] [Bug 48509] New: Fail to parse empty target region
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Dec 14 16:54:09 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=48509
Bug ID: 48509
Summary: Fail to parse empty target region
Product: OpenMP
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Clang Compiler Support
Assignee: unassignedclangbugs at nondot.org
Reporter: jonathanchesterfield at gmail.com
CC: llvm-bugs at lists.llvm.org
#pragma omp declare target
#pragma omp end declare target
> error: expected '#pragma omp end declare target'
https://godbolt.org/z/W4rbca
Putting int x; between the pragmas is sufficient to resolve this.
Fails on trunk, nvptx as well as older compilers.
--
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/20201215/5418b30f/attachment.html>
More information about the llvm-bugs
mailing list