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
2015-12-15 Paolo Carlini <paolo.carlini@oracle.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
pr63506-1.C
blob
dbdcdfb46c2d97a98a74426c589cceac25186630
1
// { dg-do compile { target c++11 } }
2
3
struct proxy {};
4
5
struct iterator
6
{
7
proxy operator*() { return proxy(); }
8
};
9
10
//#define DEACTIVATE
11
12
#ifndef DEACTIVATE
13
template<typename T = int>
14
#endif
15
void foo(iterator it)
16
{
17
auto&& x = *it;
18
}
19
20
int main()
21
{
22
iterator it;
23
foo(it);
24
}