[Mono-list] Using Mono

Daniel Carrera dcarrera@math.toronto.edu
Sat, 30 Mar 2002 02:49:35 -0500 (EST)


I found the culpit!!
After a lot of semi-random playing around, I found what line of my code
that causes the error.

Here is my original class:
public class Complex {

	private double Real=0;
	private double Imaginary=0;

	// Constructor.
	public Complex(double Re, double Imag) {
		this.Real = Re;
		this.Imaginary = Imag;
	}
}


If you replace the 2nd and 3rd statement by:

private double Real;
private double Imaginary;  // Notice I dropped "=0"

The program compiles perfectly.

Hopefully this will help the senior members identify the problem.

Best,
Daniel.


> Thanks Migel, Dietmar and Dan.
>
> The first few errors have been fixed.  The only one left is:
>
> daniel]$ mono ExampleComp.exe
>
> (process:24334): ** WARNING **: tree does not match
>  (STIND_R8 (ADD (LDIND_REF ADDR_L[1]) CONST_I4) CONST_I4)
>
>         (STIND_R8 (ADD (LDIND_REF ADDR_L[1]) CONST_I4) CONST_I4)
>         (STIND_R8 (ADD (LDIND_REF ADDR_L[1]) CONST_I4) CONST_I4)
>         (CALL_VOID (LDIND_REF ADDR_L[1]) ADDR_G)
>         (STIND_R8 (ADD (LDIND_REF ADDR_L[1]) CONST_I4) (LDIND_R8
> ADDR_L[2]))
>         (STIND_R8 (ADD (LDIND_REF ADDR_L[1]) CONST_I4) (LDIND_R8
> ADDR_L[3]))
>         RET_VOID
>
> (process:24334): ** ERROR **: file emit-x86.c: line 327
(mono_label_cfg):
> should not be reached
> aborting...
> Aborted