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