From: Jakub Jelinek Date: Wed, 14 Feb 2001 16:41:44 +0000 (+0100) Subject: * typeck.c (build_unary_op): Clarify error message. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7161c1a582aef9f05caeb12189391a9c04aadda9;p=gcc.git * typeck.c (build_unary_op): Clarify error message. From-SVN: r39685 --- 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); }