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
c++: P0847R7 (deducing this) - xobj lambdas. [PR102609]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
range-for18.C
blob
e38b41cc30d2b9bca10d663ccc5e51f5b61faa4d
1
// PR c++/87152
2
// { dg-do compile }
3
// { dg-options "-std=c++2a" }
4
5
template<int> void foo()
6
{
7
int a[] = { 1, 1, 1 };
8
for (int i = 0; auto x : a);
9
int i;
10
}
11
12
void
13
bar ()
14
{
15
foo<0>();
16
}