Follow-up Comment #3, bug #20790 (project dotgnu-pnet):
Hi,
i tried the patch now.
using this simple (even illegal because Object doesn't
implement IDisposable)
testcase:
using System;
public class Test
{
static void Test1()
{
Object a = 0;
using(a)
{
}
}
}
emits the following output:
.class public auto ansi 'Test' extends
['.library']'System'.'Object'
{
.method private static hidebysig void 'Test1'() cil managed
{
.locals init (class
['.library']'System'.'Object')
ldc.i4.0
box ['.library']'System'.'Int32'
stloc.0
.try {
leave ?L1
} finally {
ldloc 39504 <--- the problem is here
brfalse ?L2
ldloc 39504
callvirt instance void
[.library]System.IDisposable: ispose()
endfinally
?L2:
}
?L1:
ret
.maxstack 1
} // method Test1
It looks like varnode is not initialized at this point.
Did you miss something in your patch?
_______________________________________________________
Reply to this item at:
<http://savann
ah.gnu.org/bugs/?20790>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.gnu.org/
_______________________________________________
Pnet-developers mailing list
Pnet-developers dotgnu.org
ht
tp://dotgnu.org/mailman/listinfo/pnet-developers
|