OSDN Git Service

* pt.c (type_unification_real): Set input_location
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / array17.C
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 }