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: [email protected]
          Reporter: [email protected]
                CC: [email protected]

#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
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to