Douglas Gregor | 2e93388 | 2010-01-12 17:06:20 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Andy Gibbs | 8e8fb3b | 2012-10-19 12:44:48 +0000 | [diff] [blame] | 2 | // expected-no-diagnostics |
Douglas Gregor | 2e93388 | 2010-01-12 17:06:20 +0000 | [diff] [blame] | 3 | |
4 | template<typename T> | ||||
5 | struct Base { | ||||
6 | T inner; | ||||
7 | }; | ||||
8 | |||||
9 | template<typename T> | ||||
10 | struct X { | ||||
11 | template<typename U> | ||||
12 | struct Inner { | ||||
13 | }; | ||||
14 | |||||
15 | bool f(T other) { | ||||
16 | return this->inner < other; | ||||
17 | } | ||||
18 | }; |