This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/10293] incorrect evaluation order for final class method arguments
- From: "tromey at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jul 2003 15:48:36 -0000
- Subject: [Bug java/10293] incorrect evaluation order for final class method arguments
- References: <20030402063600.10293.mamoru@moon.email.ne.jp>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10293
tromey at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |FIXED
------- Additional Comments From tromey at gcc dot gnu dot org 2003-07-23 15:48 -------
I tried this code with the cvs trunk and with 3.3:
class A { void foo( int a, int b ) {System.out.println("foo: " + a + "," + b);} }
final class B { void bar( int a, int b ) {System.out.println("bar: " + a + "," +
b);} }
public class t
{
public static void main(String[] args)
{
A a = new A();
B b = new B();
int x = 0;
a.foo( x, x += 1 );
x = 0;
b.bar( x, x += 1 );
}
}
This worked fine. I'm closing the PR.