[llvm-bugs] [Bug 49651] New: Declare variant doesn't work if arguments are passed as references
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Mar 19 08:35:18 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=49651
Bug ID: 49651
Summary: Declare variant doesn't work if arguments are passed
as references
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 code here (https://godbolt.org/z/enYd5b) should use the variant:
```
#include <omp.h>
void bar(int&);
#pragma omp begin declare variant match(user={condition(1)})
void bar(int&) {
}
#pragma omp end declare variant
void test(int i) {
bar(i);
}
```
--
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/a8cf51b0/attachment.html>
More information about the llvm-bugs
mailing list