This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: invalid lvalue in assignment
Please don't top-post.
Oliver Block writes:
> Thank you, Eljay.
>
> BTW: Would this cause an error on older versions of gcc, too? Or only on 4.x?
It's called an "lvalue cast". We used to support this bogosity, but
we deprecated it in 3.4 and removed it altogether in 4.0.
http://gcc.gnu.org/ml/gcc-patches/2004-01/msg01730.html
Andrew.
> Am Dienstag, 20. Februar 2007 20:50 schrieben Sie:
> > Hi Oliver,
> >
> > This is not legit:
> >
> > ((zend_bool)(*retval).value.lval) = objval->active;
> >
> > ...nor this...
> >
> > ((zend_bool)(*retval).value.lval) = objval->parent_access;;
> >
> > I'm not sure what zval looks like. Probably needs to be implemented in a
> > way that is C (ISO 9899) compliant.
> >
> > HTH,
> > --Eljay