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
2014-01-30 Alangi Derick <alangiderick@gmail.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
array17.C
blob
12a5c472095b3c50ac4fbe29416ab1c3438821b2
1
// { dg-do compile }
2
3
template <typename T>
4
struct V {
5
T& operator[](int);
6
};
7
8
struct S {
9
S operator +(int);
10
template <typename T> T value();
11
};
12
13
template <typename T>
14
void R (T v)
15
{
16
v[(S() + 0).template value<int>()][0] = 0;
17
}
18
19
int
20
main ()
21
{
22
R(V<V<int> >());
23
}