This is the mail archive of the gcc-patches@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]

Re: C++ PATCH: sizeof(expr)


>>>>> 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


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