From 39fcc9a984e2820e4ea0fa2ac4abd17d9f3a31df Mon Sep 17 00:00:00 2001 From: dim Date: Sun, 20 Feb 2011 13:06:31 +0000 Subject: Vendor import of clang trunk r126079: http://llvm.org/svn/llvm-project/cfe/trunk@126079 --- test/SemaTemplate/instantiate-local-class.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'test/SemaTemplate/instantiate-local-class.cpp') diff --git a/test/SemaTemplate/instantiate-local-class.cpp b/test/SemaTemplate/instantiate-local-class.cpp index d57ba8a..20b62c1 100644 --- a/test/SemaTemplate/instantiate-local-class.cpp +++ b/test/SemaTemplate/instantiate-local-class.cpp @@ -50,3 +50,18 @@ namespace local_class_with_virtual_functions { struct S { }; void test() { f(); } } + +namespace PR8801 { + template + void foo() { + class X; + typedef int (X::*pmf_type)(); + class X : public T { }; + + pmf_type pmf = &T::foo; + } + + struct Y { int foo(); }; + + template void foo(); +} -- cgit v1.1