[Bug middle-end/41149] -fdump-tree-original and procedure pointer components
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Aug 24 09:21:00 GMT 2009
------- Comment #1 from rguenth at gcc dot gnu dot org 2009-08-24 09:21 -------
Seems like by design, see tree-pretty-print.c:print_call_name
Likely for printing prettier member function names. IMHO we should just
drop this function on the floor considering it prints t.w (...) for
struct
{
struct
{
funcPtr *ppc;
} w;
} t;
t.w.ppc = func;
l = t.w.ppc("Hello");
I'll happily approve a patch that passes bootstrap and testing that
reduces the function to strip an address-taking operation (note the
CALL_EXPR operand is an address of the function, so &a (...) should
print as a (...) and p (...) should print as (*p) (...)).
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rguenth at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-08-24 09:21:23
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41149
More information about the Gcc-bugs
mailing list