[Mono-list] tree mismatch errors

Martin Baulig martin@gnome.org
22 Feb 2002 17:22:41 +0100


Hi,

when trying to run the following:

====[Test.cs]=====
using System;

class MainApp {
 
	public static void Main() {

		TimeSpan ts = new TimeSpan (1, 2, 3, 4);

		Console.WriteLine ("Hello World!");

	}
}
=====

I get:

=====
[martin@einstein work]$ /home/export/martin/monocvs/mono/mono/jit/mono ./Test.exe

(process:13449): ** WARNING **: tree does not match
 (STIND_I8 ADDR_L[9] (MUL_OVF CONST_I8 (CONV_I8 (LDIND_U4 ADDR_L[3]))))

        (STIND_I8 ADDR_L[9] (MUL_OVF CONST_I8 (CONV_I8 (LDIND_U4 ADDR_L[3]))))
        (STIND_I8 ADDR_L[10] (MUL_OVF CONST_I8 (CONV_I8 (LDIND_U4 ADDR_L[4]))))
        (STIND_I8 ADDR_L[11] (MUL_OVF (CONV_I8 CONST_I4) (CONV_I8 (LDIND_U4 ADDR_L[5]))))
        (STIND_I8 ADDR_L[12] (MUL_OVF (CONV_I8 CONST_I4) (CONV_I8 (LDIND_U4 ADDR_L[6]))))
        (STIND_I8 ADDR_L[13] (MUL_OVF (CONV_I8 CONST_I4) (CONV_I8 (LDIND_U4 ADDR_L[7]))))
        (STIND_I8 (ADD (LDIND_REF ADDR_L[1]) CONST_I4) (ADD_OVF (ADD_OVF (ADD_OVF (ADD_OVF (ADD_OVF (LDIND_I8 ADDR_L[9]) (LDIND_I8 ADDR_L[10])) (LDIND_I8 ADDR_L[11])) (LDIND_I8 ADDR_L[12])) (LDIND_I8 ADDR_L[13])) (LDIND_I8 ADDR_L[8])))
        (BRFALSE (LDIND_U4 ADDR_L[2]))

(process:13449): ** ERROR **: file emit-x86.c: line 508 (mono_label_cfg): should not be reached
aborting...
====

Is this a bug ?

Btw. this disappears when I remove the reference to System.TimeSpan.

-- 
Martin Baulig
martin@gnome.org