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

Reply via email to