gcc/testsuite/g++.dg/template/mem-partial1.C
raw| 1 | // PR c++/14032 |
| 2 | |
| 3 | template <typename T> struct outer { |
| 4 | template <typename T2, typename U> |
| 5 | struct inner { |
| 6 | static int f() { return inner<T,int>::N; }; |
| 7 | }; |
| 8 | |
| 9 | template <typename U> |
| 10 | struct inner<T,U> { |
| 11 | static const int N = 1; |
| 12 | }; |
| 13 | }; |
| 14 | |
| 15 | int i = outer<int>::inner<double,int>::f(); |