[llvm-bugs] [Bug 49650] New: Declare variant should suppress warnings if the unused declaration has internal linkage

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Mar 19 08:33:24 PDT 2021


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

            Bug ID: 49650
           Summary: Declare variant should suppress warnings if the unused
                    declaration has internal linkage
           Product: OpenMP
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Clang Compiler Support
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jdoerfert at anl.gov
                CC: llvm-bugs at lists.llvm.org

The warning we see here (https://godbolt.org/z/PhPP9a)

```
#include <omp.h>

namespace {
void bar();
}

#pragma omp begin declare variant match(user={condition(1)})

void bar() {

}

#pragma omp end declare variant

void test() {
    bar();
}
```

should not be issued because the overload is picked.

-- 
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/20210319/d3fd58b2/attachment.html>


More information about the llvm-bugs mailing list