[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / template / array17.C
blob12a5c472095b3c50ac4fbe29416ab1c3438821b2
1 // { dg-do compile }
3 template <typename T>
4 struct V {
5   T& operator[](int);
6 };
8 struct S {
9   S operator +(int);
10   template <typename T> T value();
13 template <typename T>
14 void R (T v)
16   v[(S() + 0).template value<int>()][0] = 0;
19 int
20 main ()
22   R(V<V<int> >());