This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug java/10293] incorrect evaluation order for final class method arguments


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]