Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / dependent3.C
blobcaf7e1cd4a49c70c6423d64d6eda02f1be18761a
1 // { dg-do compile { target c++11 } }
3 template<typename c>
4 struct d
6   using e = c;
7 };
9 template<class f>
10 struct g
12   using h = typename d<f>::e;
14   template<class i, class j>
15   auto operator()(i, j k) -> decltype(h{k});
18 template<class l>
19 void m()
21   int a[1];
22   l{}(a, a);
25 int main()
27   m<g<int *>>();