MRAB <pyt...@mrabarnett.plus.com> writes:

> So it complains about:
>
>     ++(RE_CHAR*)context->text_ptr
>
> but not about:
>
>     ++info->repeat.count
>
> Does this mean that the gcc compiler thinks that the cast makes it an
> rvalue?

The cast operator does return an rvalue, treating it otherwise used to
be an extension to popular compilers, including ironically gcc.  The
standard-compliant way of writing the above would be:

++ *(RE_CHAR **) &context->text_ptr
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to