Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Unified Diff: gcc/gcc/testsuite/g++.dg/conversion/ptrmem2.C

Issue 3050029: [gcc] GCC 4.5.0=>4.5.1 (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/nacl-toolchain.git
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gcc/gcc/testsuite/g++.dg/cdce3.C ('k') | gcc/gcc/testsuite/g++.dg/cpp/_Pragma1.C » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcc/gcc/testsuite/g++.dg/conversion/ptrmem2.C
diff --git a/gcc/gcc/testsuite/g++.dg/conversion/ptrmem2.C b/gcc/gcc/testsuite/g++.dg/conversion/ptrmem2.C
index db39fc0345778b0956b7a6c2fe978aa8e2f62905..d46113db6c658f8d65a88608577046f187fce6c3 100644
--- a/gcc/gcc/testsuite/g++.dg/conversion/ptrmem2.C
+++ b/gcc/gcc/testsuite/g++.dg/conversion/ptrmem2.C
@@ -31,8 +31,8 @@ const int B::*p9 = static_cast<const int B::*>(&D::x);
const int D::*p10 = static_cast<const int D::*>(&B::x);
// Invalid conversions which decrease cv-qualification.
-int B::*p11 = static_cast<int B::*>(p10); // { dg-error "casts away constness" }
-int D::*p12 = static_cast<int D::*>(p9); // { dg-error "casts away constness" }
+int B::*p11 = static_cast<int B::*>(p10); // { dg-error "casts away qualifiers" }
+int D::*p12 = static_cast<int D::*>(p9); // { dg-error "casts away qualifiers" }
// Attempts to change member type.
float B::*p13 = static_cast<float B::*>(&D::x); // { dg-error "" }
« no previous file with comments | « gcc/gcc/testsuite/g++.dg/cdce3.C ('k') | gcc/gcc/testsuite/g++.dg/cpp/_Pragma1.C » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698