From 0ff51f39deacb0622f64e2c6100edfa87a6081b5 Mon Sep 17 00:00:00 2001 From: Richard Trieu Date: Fri, 15 May 2015 22:07:49 +0000 Subject: Reverse the order of types in the reference dropping qualifiers error. The error has the form ... 'int' ... 'const int' ... dropped qualifiers. At first glance, it appears that the const qualifier is added. Reverse the types so that the second type is less qualified than the first. llvm-svn: 237482 --- clang/test/SemaCXX/references.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/test/SemaCXX/references.cpp') diff --git a/clang/test/SemaCXX/references.cpp b/clang/test/SemaCXX/references.cpp index b1768b1a3a4..64d87bd132b 100644 --- a/clang/test/SemaCXX/references.cpp +++ b/clang/test/SemaCXX/references.cpp @@ -54,7 +54,7 @@ void test4() { void test5() { // const double& rcd2 = 2; // rcd2 refers to temporary with value 2.0 const volatile int cvi = 1; - const int& r = cvi; // expected-error{{binding of reference to type 'const int' to a value of type 'const volatile int' drops qualifiers}} + const int& r = cvi; // expected-error{{binding value of type 'const volatile int' to reference of type 'const int' drops qualifiers}} } // C++ [dcl.init.ref]p3 -- cgit v1.2.3