This is the mail archive of the gcc-bugs@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]

Re: erroneous result computing an expression



Ludovic WALLE <walle@inist.fr> writes:

>     if ((((((int) *((*str)++)) & 0x1FU) << 6) | (((int) *((*str)++)) &
> 0x3FU)) != 0xA0) {

This expression is not legal ISO C, because it modifies '*str' twice
between sequence points.  There is no bug in gcc.

-- 
- Geoffrey Keating <geoffk@cygnus.com>

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