Re: invalid lvalue in assignment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux