https://bugs.llvm.org/show_bug.cgi?id=49497

            Bug ID: 49497
           Summary: [5.0] metadirective and default clause
           Product: OpenMP
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Clang Compiler Support
          Assignee: unassignedclangb...@nondot.org
          Reporter: pro...@itc.rwth-aachen.de
                CC: llvm-bugs@lists.llvm.org

The clang support for metadirective (after merging
https://reviews.llvm.org/D91944) has two issues regarding the default clause:

- The spec does not require a default clause. I get "error: expected
expression" if I omit a default clause. The error is gone if I add default().

- The spec does not allow an empty "default()" clause, but rather expects
"default(nothing)" or omission of the default clause. Clang accepts the empty
default clause.

-- 
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