This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: new regression in g++.old-deja/g++.other/decl3.C
Richard Henderson wrote:
Bah. Two choices:
/* ??? Caution: Broken ADDR_EXPR semantics means that looking at the
type of the operand of the addr_expr can yield an array type.
See silly exception in check_pointer_types_r. */
(1) t = TREE_TYPE (TREE_TYPE (OBJ_TYPE_REF_OBJECT (callee)));
I'm not sure which I prefer here. I'm also too tired to test either
at the moment. If you could smoke-test one, I'd appreciate it.
The first one looks promising -- it passes the g++ tests, I'm testing gcc,
but due to forgetfulness on my part it is not accessible to me right now.
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk