Douglas Gregor | f187420f | 2009-06-17 23:37:01 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -fsyntax-only -verify %s |
Douglas Gregor | fdca4a7 | 2009-03-27 04:21:56 +0000 | [diff] [blame] | 2 | |
| 3 | class A; |
| 4 | |
| 5 | class S { |
| 6 | public: |
| 7 | template<typename T> struct A { |
| 8 | struct Nested { |
| 9 | typedef T type; |
| 10 | }; |
| 11 | }; |
| 12 | }; |
| 13 | |
| 14 | int i; |
| 15 | S::A<int>::Nested::type *ip = &i; |
| 16 | |
Douglas Gregor | a3dff8e | 2009-08-24 23:03:25 +0000 | [diff] [blame^] | 17 | template<typename T> |
| 18 | struct X0 { |
| 19 | template<typename U> void f0(T, U); |
| 20 | |
| 21 | template<typename U> |
| 22 | struct Inner0 { |
| 23 | void f1(T, U); |
| 24 | }; |
| 25 | }; |
| 26 | |
| 27 | template<typename X> template<typename Y> void X0<X>::f0(X, Y) { } |
| 28 | |
| 29 | // FIXME: |
| 30 | // template<typename X> template<typename Y> void X0<X>::Inner0<Y>::f1(X, Y) { } |