This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH: sizeof(expr)
- To: Mark Mitchell <mark at codesourcery dot com>
- Subject: Re: C++ PATCH: sizeof(expr)
- From: Jason Merrill <jason at cygnus dot com>
- Date: 10 Sep 1999 12:14:51 -0700
- Cc: nathan at cs dot bris dot ac dot uk, nathan at acm dot org, egcs-patches at egcs dot cygnus dot com
- References: <37D92EF1.6D697574@acm.org> <19990910113127M.mitchell@codesourcery.com>
>>>>> Mark Mitchell <mark@codesourcery.com> writes:
Nathan> couldn't find any justification to the comment about the
Nathan> invalidity of sizeof(X::i), (modulo accessibility) and
> Here's the quote:
> [expr.prim]
Seems to me that this stuff should already be handled by
resolve_offset_ref, and doesn't need to be noted specially in the sizeof
code.
> How do we know that all callers of build_compound_expr will do the
> decay that is no longer being done there? I suppose if you tested it,
> that's roughly good enough. Let's get Jason's thoughts, though.
I can't find the passage that says that comma expressions cause functions
and arrays to decay. I think we should just remove the decay entirely.
Jason