gcc/testsuite/g++.dg/cpp0x/pr119580.C
raw| 1 | // PR c++/119580 |
| 2 | // { dg-do compile { target c++11 } } |
| 3 | |
| 4 | template<typename> struct V; |
| 5 | template<typename> class C; |
| 6 | class F; |
| 7 | |
| 8 | struct S { |
| 9 | template<typename> |
| 10 | static void foo (); |
| 11 | template<typename T, typename> |
| 12 | C<decltype(S::foo<T::value_type>)> foo (); |
| 13 | decltype(foo<V<F>>()) *a; |
| 14 | }; |
| 15 | |
| 16 | S s; |