This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PR tree-opt/33616: ICE on callee-copied constructor arguments
On Tue, 2 Oct 2007, Richard Sandiford wrote:
> Sorry, my mistake. I'd assumed that because C's COMPOUND_LITERAL_EXPRs
> are lvalues -- as in:
>
> struct s { int i, j; };
> void foo (void) { (struct s) { 1, 2 } = (struct s) { 3, 4 }; }
>
> -- that CONSTRUCTORs would be too.
And specifically, COMPOUND_LITERAL_EXPR was created because CONSTRUCTORs
are not lvalues and otherwise do not satisfy the semantics of compound
literals.
http://gcc.gnu.org/ml/gcc/2001-11/msg01301.html
--
Joseph S. Myers
joseph@codesourcery.com