[llvm-bugs] [Bug 49497] New: [5.0] metadirective and default clause

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Mar 9 12:56:25 PST 2021


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: unassignedclangbugs at nondot.org
          Reporter: protze at itc.rwth-aachen.de
                CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210309/85cffa78/attachment.html>


More information about the llvm-bugs mailing list