Douglas Gregor | 06b7080 | 2010-07-15 21:05:01 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
2 | // XFAIL: * | ||||
3 | struct X { | ||||
4 | template<typename T> X(T); | ||||
5 | X(int, int); | ||||
6 | |||||
7 | X operator()(int, int) const; | ||||
8 | }; | ||||
9 | |||||
10 | template<typename T, typename U> struct Y { }; | ||||
11 | |||||
12 | X *x; | ||||
13 | void f() { | ||||
14 | int y = 0; | ||||
15 | X (*x)(int(y), int(y)) = Y<int, float>(), ++y; | ||||
16 | } |