blob: eaaae9b6ee3163676ad0cea656231e790feee22a [file] [log] [blame]
Douglas Gregor79c22782010-01-16 20:21:20 +00001// RUN: %clang_cc1 -verify %s
2template<typename T>
3void f0() {
4 struct X;
5 typedef struct Y {
6 T (X::* f1())(int) { return 0; }
7 } Y2;
8
9 Y2 y = Y();
10}
11
12template void f0<int>();
Douglas Gregor26997fd2010-01-16 20:52:59 +000013
14// PR5764
15namespace PR5764 {
16 class X {
17 template <typename T>
18 void Bar() {
19 class Y {
20 Y() {}
21 };
22
23 Y y;
24 }
25 };
26
27 void test(X x) {
28 x.Bar<int>();
29 }
30}
31