Issue |
66999
|
Summary |
Support capturing structured binding in OpenMP
|
Labels |
new issue
|
Assignees |
|
Reporter |
gonzalobg
|
Encountered trying to compile an HPC app that compiles fine with gcc and nvc++, but fails to compile with clang due to the following issue ([godbolt](https://clang.godbolt.org/z/oKf6esqhs)):
```c++
#include <utility>
auto test(std::pair<int, int> p) {
auto [x, y] = p;
return [&] {
return x + y;
};
}
```
with
```
<source>:5:16: error: capturing a structured binding is not yet supported in OpenMP
5 | return x + y;
| ^
<source>:3:11: note: 'x' declared here
3 | auto [x, y] = p;
| ^
```
cc @jdoerfert
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs