diff options
Diffstat (limited to 'test/CXX/expr/expr.unary/expr.unary.op/p4.cpp')
-rw-r--r-- | test/CXX/expr/expr.unary/expr.unary.op/p4.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/CXX/expr/expr.unary/expr.unary.op/p4.cpp b/test/CXX/expr/expr.unary/expr.unary.op/p4.cpp index 06cc610..cd55cc2 100644 --- a/test/CXX/expr/expr.unary/expr.unary.op/p4.cpp +++ b/test/CXX/expr/expr.unary/expr.unary.op/p4.cpp @@ -38,6 +38,8 @@ namespace test2 { }; void A::test() { - int (A::*ptr)(int) = &(A::foo); // expected-error {{can't form member pointer of type 'int (test2::A::*)(int)' without '&' and class name}} + // FIXME: The error message in this case is less than clear, we can do + // better. + int (A::*ptr)(int) = &(A::foo); // expected-error {{cannot create a non-constant pointer to member function}} } } |