From 0883ccd9eac3b974df00e6548ee319a7dd3646f4 Mon Sep 17 00:00:00 2001 From: Roman Divacky Date: Tue, 4 May 2010 16:12:48 +0000 Subject: Update clang to r103004. --- test/SemaTemplate/dependent-names.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/SemaTemplate/dependent-names.cpp') diff --git a/test/SemaTemplate/dependent-names.cpp b/test/SemaTemplate/dependent-names.cpp index a2d3c56501e8..77961069c5a2 100644 --- a/test/SemaTemplate/dependent-names.cpp +++ b/test/SemaTemplate/dependent-names.cpp @@ -18,15 +18,18 @@ template class R : Q {T current;}; namespace test0 { template class Base { + public: void instance_foo(); static void static_foo(); class Inner { + public: void instance_foo(); static void static_foo(); }; }; template class Derived1 : Base { + public: void test0() { Base::static_foo(); Base::instance_foo(); @@ -49,6 +52,7 @@ namespace test0 { }; template class Derived2 : Base::Inner { + public: void test0() { Base::static_foo(); Base::instance_foo(); // expected-error {{call to non-static member function without an object argument}} -- cgit v1.3