This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: erroneous result computing an expression
- To: walle at inist dot fr
- Subject: Re: erroneous result computing an expression
- From: Geoff Keating <geoffk at cygnus dot com>
- Date: 24 Mar 2000 13:41:24 -0800
- CC: gcc-bugs at gcc dot gnu dot org
- References: <38DB5310.A5BB7FFB@inist.fr>
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>