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
Merged revisions 208012,208018-208019,208021,208023-208030,208033,208037,208040-20804...
[official-gcc.git]
/
main
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
lambda
/
lambda-template3.C
blob
dea9e0e4c09772456bec4bed95d3c117ce069dd7
1
// PR c++/49554
2
// { dg-do compile { target c++11 } }
3
4
template<typename T>
5
struct base
6
{
7
struct iterator { };
8
9
iterator begin();
10
};
11
12
template<typename T>
13
class flist : public base<T>
14
{
15
typedef base<T> Base;
16
17
typedef typename Base::iterator Base_iterator;
18
public:
19
20
void
21
resize()
22
{
23
Base_iterator b = Base::begin();
24
25
[b](int i) { return i; };
26
}
27
};
28
29
void test01()
30
{
31
flist<int> fl;
32
fl.resize();
33
}