From 2fce988e86bc01829142e4362d4eff1af0925147 Mon Sep 17 00:00:00 2001 From: rdivacky Date: Sat, 23 Jan 2010 11:10:26 +0000 Subject: Update clang to r94309. --- test/SemaTemplate/dependent-expr.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'test/SemaTemplate/dependent-expr.cpp') diff --git a/test/SemaTemplate/dependent-expr.cpp b/test/SemaTemplate/dependent-expr.cpp index 412a811..3f481b5 100644 --- a/test/SemaTemplate/dependent-expr.cpp +++ b/test/SemaTemplate/dependent-expr.cpp @@ -5,3 +5,22 @@ template void Test(Iterator it) { *(it += 1); } + +namespace PR6045 { + template + class A + { + static const unsigned int member = r; + void f(); + }; + + template + const unsigned int A::member; + + template + void A::f() + { + unsigned k; + (void)(k % member); + } +} -- cgit v1.1