This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: volatile is not volatile enough
- From: "Christian Ehrhardt" <ehrhardt at mathematik dot uni-ulm dot de>
- To: Hirogen2 <hirogen2 at gmx dot de>
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 25 Jun 2003 16:41:49 +0200
- Subject: Re: volatile is not volatile enough
- References: <Pine.LNX.4.53.0306251515330.27252@yvahk01.tjqt.qr>
On Wed, Jun 25, 2003 at 03:20:57PM +0200, Jan Engelhardt wrote:
> func2(func1(a), a[0], a[1]);
This is not a bug. Evaluation order of function arguments is undefined,
i.e. it is perfectly legal to compute a[0] and a[1] before calling func1.
regards Christian
--
THAT'S ALL FOLKS!