From a4b592a7d5892001b53f51fe936c77d340e6df38 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Sat, 19 Dec 2009 03:01:41 +0000 Subject: Switch more of Sema::CheckInitializerTypes over to InitializationSequence. Specially, switch initialization of a C++ class type (either copy- or direct-initialization). Also, make sure that we create an elidable copy-construction when performing copy initialization of a C++ class variable. Fixes PR5826. llvm-svn: 91750 --- clang/test/SemaCXX/nested-name-spec.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/test/SemaCXX/nested-name-spec.cpp') diff --git a/clang/test/SemaCXX/nested-name-spec.cpp b/clang/test/SemaCXX/nested-name-spec.cpp index dc8eda59942..454af5ef196 100644 --- a/clang/test/SemaCXX/nested-name-spec.cpp +++ b/clang/test/SemaCXX/nested-name-spec.cpp @@ -178,7 +178,7 @@ bool (foo_S::value); namespace somens { - struct a { }; + struct a { }; // expected-note{{candidate function}} } template @@ -189,7 +189,7 @@ class foo { // PR4452 / PR4451 foo a2; // expected-error {{unexpected ':' in nested name specifier}} -somens::a a3 = a2; // expected-error {{cannot initialize 'a3' with an lvalue of type 'foo'}} +somens::a a3 = a2; // expected-error {{no viable conversion}} // typedefs and using declarations. namespace test1 { -- cgit v1.2.3