From 36c49e3f258dced101949edabd72e9bc3f1dedc4 Mon Sep 17 00:00:00 2001 From: dim Date: Fri, 17 Sep 2010 15:54:40 +0000 Subject: Vendor import of clang r114020 (from the release_28 branch): http://llvm.org/svn/llvm-project/cfe/branches/release_28@114020 Approved by: rpaulo (mentor) --- test/SemaTemplate/temp.cpp | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'test/SemaTemplate/temp.cpp') diff --git a/test/SemaTemplate/temp.cpp b/test/SemaTemplate/temp.cpp index 961b9c8..e037f0f 100644 --- a/test/SemaTemplate/temp.cpp +++ b/test/SemaTemplate/temp.cpp @@ -1,5 +1,19 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s -// p3 -template int foo(T), bar(T, T); // expected-error{{single entity}} +namespace test0 { + // p3 + template int foo(T), bar(T, T); // expected-error{{single entity}} +} + +// PR7252 +namespace test1 { + namespace A { template struct Base { typedef T t; }; } // expected-note {{member found}} + namespace B { template struct Base { typedef T t; }; } // expected-note {{member found}} + + template struct Derived : A::Base, B::Base { + // FIXME: the syntax error here is unfortunate + typename Derived::Base::t x; // expected-error {{found in multiple base classes of different types}} \ + // expected-error {{expected member name or ';'}} + }; +} -- cgit v1.1