This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/23194] Unhelpful diagnostic for incorrect pointer-to-member function syntax



------- Comment #6 from jwakely dot gcc at gmail dot com  2007-10-02 23:54 -------
(From update of attachment 14287)
>Index: gcc/cp/typeck.c
>===================================================================
>--- gcc/cp/typeck.c	(revision 128908)
>+++ gcc/cp/typeck.c	(working copy)
>@@ -2716,8 +2716,8 @@
>   if (TYPE_PTRMEMFUNC_P (fntype))
>     {
>       error ("must use %<.*%> or %<->*%> to call pointer-to-member "
>-	     "function in %<%E (...)%>",
>-	     original);
>+	     "function in %<%E (...)%>, e.g. %<(... ->* %E) (...)%>",
>+	     original, original);
>       return error_mark_node;
>     }
> 


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23194


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]