[Bug c/33270] Wrong evaluation

2007-08-31 Thread tim dot bruylants at vub dot ac dot be
--- Comment #4 from tim dot bruylants at vub dot ac dot be 2007-08-31 19:30 --- Thank you for this explanation. A friend of me also found an explaining document on http://www.open-std.org/jtc1/sc22/wg14/www/docs/n926.htm. Looking at 12.4.1 seems to be the case that I am in... and it's

[Bug c/33270] Wrong evaluation

2007-08-31 Thread tim dot bruylants at vub dot ac dot be
--- Comment #3 from tim dot bruylants at vub dot ac dot be 2007-08-31 19:05 --- Can someone please explain me why this behavior is correct according to the specifications? Isn't the function call issuing a new sequence point? Isn't the ++(*p_a); statement in the function a separate sequ

[Bug c/33270] Wrong evaluation

2007-08-31 Thread raeburn at raeburn dot org
--- Comment #2 from raeburn at raeburn dot org 2007-08-31 19:04 --- Subject: Re: New: Wrong evaluation On Aug 31, 2007, at 11:05, tim dot bruylants at vub dot ac dot be wrote: > The following code generates a "1" with gcc-4.1 and generates a "2" > with a lot > of other compilers (Vi

[Bug c/33270] Wrong evaluation

2007-08-31 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2007-08-31 16:09 --- *** This bug has been marked as a duplicate of 11751 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added --