Mercurial > hg > CbC > CbC_llvm
diff clang/test/SemaTemplate/cxx1z-using-declaration.cpp @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 1d019706d866 |
children | 1f2b6ac9f198 |
line wrap: on
line diff
--- a/clang/test/SemaTemplate/cxx1z-using-declaration.cpp Mon May 25 11:55:54 2020 +0900 +++ b/clang/test/SemaTemplate/cxx1z-using-declaration.cpp Tue Jun 08 06:07:14 2021 +0900 @@ -4,14 +4,14 @@ template<typename ...T> struct Unexpanded : T... { using T::f; // expected-error {{unexpanded}} using typename T::type; // expected-error {{unexpanded}} - template<typename ...U> void g(U ...u) { f(u...); } // expected-error {{undeclared identifier 'f'}} + template<typename ...U> void g(U ...u) { f(u...); } // expected-error {{explicit qualification required to use member 'f' from dependent base class}} void h() { Unexpanded<type...> *p; // expected-error {{undeclared identifier 'type'}} } }; void test_Unexpanded() { - struct A { void f(); }; // expected-note {{must qualify}} - struct B { void f(int); }; // expected-note {{must qualify}} + struct A { void f(); }; + struct B { void f(int); }; // expected-note {{here}} Unexpanded<A, B>().g(0); // expected-note {{instantiation of}} }