--- Comment #13 from redi at gcc dot gnu dot org 2008-06-24 20:44 ---
Subject: Bug 23194
Author: redi
Date: Tue Jun 24 20:44:04 2008
New Revision: 137086
URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=137086
Log:
PR c++/23194
* typeck.c (cp_build_function_call):
--- Comment #14 from jwakely dot gcc at gmail dot com 2008-06-24 20:46
---
Fixed for 4.4
--
jwakely dot gcc at gmail dot com changed:
What|Removed |Added
--- Comment #3 from bangerth at dealii dot org 2007-10-02 22:08 ---
Still present. I know I should know better, but I too ran into this knife
just now and couldn't figure out what was going on for 10 minutes before I
remembered. The error message is really not very helpful...
W.
--
--- Comment #4 from jwakely dot gcc at gmail dot com 2007-10-02 23:28
---
Created an attachment (id=14287)
-- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14287action=view)
add example to diagnostic
This adds , e.g. '(...-*pmf) (...)' to the error message.
I chose to use -* not .*
--- Comment #5 from bangerth at dealii dot org 2007-10-02 23:29 ---
(In reply to comment #4)
I chose to use -* not .* because otherwise you get (*pmf) which doesn't
help either!
You could leave a space around either of the two operators.
W.
--
--- 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)
@@
On 2 Oct 2007 23:54:04 -, jwakely dot gcc at gmail dot com
[EMAIL PROTECTED] wrote:
--- Comment #6 from jwakely dot gcc at gmail dot com 2007-10-02 23:54
---
(From update of attachment 14287)
+ function in %%E (...)%, e.g. %(... -* %E) (...)%,
+ original,
--- Comment #7 from pinskia at gmail dot com 2007-10-02 23:59 ---
Subject: Re: Unhelpful diagnostic for incorrect pointer-to-member function
syntax
On 2 Oct 2007 23:54:04 -, jwakely dot gcc at gmail dot com
[EMAIL PROTECTED] wrote:
--- Comment #6 from jwakely dot gcc at gmail
--- Comment #8 from jwakely dot gcc at gmail dot com 2007-10-02 23:59
---
Yes, it looks better with spaces, thanks.
I think -* still looks clearer than .* even with the spaces.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23194
--- Comment #9 from bangerth at dealii dot org 2007-10-03 00:03 ---
Now we only need someone to test the patch and a diagnostic maintainer to
approve...
--
bangerth at dealii dot org changed:
What|Removed |Added
--- Comment #10 from jwakely dot gcc at gmail dot com 2007-10-03 00:16
---
Andrew, unfortunately that format fails with -Werror
I'm testing now, but my machine's developed a hardware problem and keeps
segfaulting, which makes it hard to build GCC let alone run the testsuite.
--
--- Comment #11 from pinskia at gcc dot gnu dot org 2007-10-03 00:24
---
(In reply to comment #10)
Andrew, unfortunately that format fails with -Werror
That should work, what version of GCC are you using to compile GCC? If it does
not work, we forgot to add this formating checking
--- Comment #12 from jwakely dot gcc at gmail dot com 2007-10-03 00:31
---
I'm bootstrapping mainline as of yesterday (r128908) with gcc version 4.1.2
20070626 (Red Hat 4.1.2-13)
The format I tried was:
error (must use %.*% or %-*% to call pointer-to-member
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-02
06:41 ---
Before 3.3, GCC gave:
t.cc:9: pointer to member function called, but not in class scope
Which is even worse.
--
What|Removed |Added
--- Additional Comments From redi at gcc dot gnu dot org 2005-08-02 08:45
---
Ah, I didn't check further back than 3.3, thanks, Andrew.
For comparison, Comeau's online compiler doesn't give a very helpful message
either, it says that a.*pmf must be an expression - which is true but no
15 matches
Mail list logo