repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[PATCH] RISC-V: Bugfix for unrecognizable insn for XTheadVector
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
gomp
/
pr105839-2.C
blob
fdb75958c5f9bdcd48ab10f1c74465c2e25a6398
1
// PR c++/105839
2
// { dg-do compile { target c++14 } }
3
// { dg-options "-fopenmp" }
4
5
template <typename T>
6
void
7
foo (const T &x)
8
{
9
[&] (auto &&y)
10
{
11
#pragma omp parallel for
12
for (auto &&[v1, v2] : x) // { dg-warning "structured bindings only available with" "" { target c++14_down } }
13
;
14
} ([]{});
15
}
16
17
struct A { int a, b; };
18
19
void
20
bar ()
21
{
22
A a[10];
23
foo (a);
24
}