Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only %s |
Douglas Gregor | 37d93e9 | 2009-08-02 23:24:31 +0000 | [diff] [blame] | 2 | |
3 | // PR4607 | ||||
4 | template <class T> struct X {}; | ||||
5 | |||||
6 | template <> struct X<char> | ||||
7 | { | ||||
8 | static char* g(); | ||||
9 | }; | ||||
10 | |||||
11 | template <class T> struct X2 {}; | ||||
12 | |||||
13 | template <class U> | ||||
14 | struct X2<U*> { | ||||
15 | static void f() { | ||||
16 | X<U>::g(); | ||||
17 | } | ||||
18 | }; | ||||
19 | |||||
20 | void a(char *a, char *b) {X2<char*>::f();} |