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

Reply via email to