OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c++/48994
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
range-for18.C
1
// PR c++/48994
2
3
// { dg-do compile }
4
// { dg-options "-std=c++0x" }
5
6
template <typename T>
7
struct myvec
8
{
9
T* begin() const;
10
T* end() const;
11
};
12
13
void f(const myvec<int>& v)
14
{
15
for (int i : v)
16
;
17
}