This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: pointer post-incr problem with GCC 3.3.3 ??
- From: Graham Stott <graham dot stott at btinternet dot com>
- To: Ron Flory <ron dot flory at adtran dot com>, gcc-bugs at gcc dot gnu dot org, "Ron Flory, Home" <rjflory at mchsi dot com>
- Cc: ron flory <ron dot flory at adtran dot com>
- Date: Fri, 18 Jun 2004 15:11:40 +0100 (BST)
- Subject: Re: pointer post-incr problem with GCC 3.3.3 ??
Hi,
> *(ptr++) = toupper(*ptr);
>
> I would assert these two code frags are functionally identical.
>
Nope your assertion is wrong.
Read up on "sequence points" and you'll undersrand why.
Graham