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
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
range-for27.C
blob
a9cfb8ebc32c7c80d2b2d16e9ed47120a7290741
1
// PR c++/58503
2
// { dg-require-effective-target c++11 }
3
// { dg-options "-fpermissive -w" }
4
5
struct c { };
6
7
template<int> void foo()
8
{
9
for (auto i : c()) { }
10
}
11
12
c* begin(const c&);
13
c* end(const c&);
14
15
template void foo<1>();