From 7161c1a582aef9f05caeb12189391a9c04aadda9 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 14 Feb 2001 17:41:44 +0100 Subject: [PATCH] * typeck.c (build_unary_op): Clarify error message. From-SVN: r39685 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/typeck.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 23d90952bd2..7f14cfbc92d 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2001-02-14 Jakub Jelinek + + * typeck.c (build_unary_op): Clarify error message. + 2001-02-08 Aldy Hernandez * cp/parse.y (component_constructor_declarator): allow optional diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index 3fd103f1c0b..f0d70ce4f47 100644 --- a/gcc/cp/typeck.c +++ b/gcc/cp/typeck.c @@ -4652,7 +4652,7 @@ build_unary_op (code, xarg, noconvert) if (current_class_type && TREE_OPERAND (arg, 0) == current_class_ref) /* An expression like &memfn. */ - cp_pedwarn ("ISO C++ forbids taking the address of a non-static member function to form a pointer to member function. Say `&%T::%D'", base, name); + cp_pedwarn ("ISO C++ forbids taking the address of an unqualified non-static member function to form a pointer to member function. Say `&%T::%D'", base, name); else cp_pedwarn ("ISO C++ forbids taking the address of a bound member function to form a pointer to member function. Say `&%T::%D'", base, name); } -- 2.30.2