This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: Semantics of CONSTRUCTOR tree nodes


On Mon, Nov 26, 2001 at 05:56:35PM -0800, Per Bothner wrote:
> Since CONSTRUCTOR expressions are (or at least should be) rvalues, and
> C99 compound literals are lvalues, I think your proposal is the right 
> model:
> 
> > so compound literals ought to use a new tree node which wraps around a
> > CONSTRUCTOR and provides the appropriately initialised object (an
> > anonymous VAR_DECL initialised by the CONSTRUCTOR, probably) with
> > appropriate storage duration required by C99
> 
> CONSTRUCTOR nodes themselves should I firmly believe be rvalues.

Agreed.


r~


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