https://bugzilla.novell.com/show_bug.cgi?id=333696

           Summary: Emitting Stelem/Ldelem with Type fails for native types
           Product: Mono: Class Libraries
           Version: unspecified
          Platform: x86-64
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [EMAIL PROTECTED]
          Found By: ---


Created an attachment (id=178286)
 --> (https://bugzilla.novell.com/attachment.cgi?id=178286)
testcase

Description of Problem:

Using the call ILGenerator.Emit(OpCodes.Ldelem, typeof(int)) (or Stelem) causes
incorrect IL to be generated.

Steps to reproduce the problem:
1. Compile the attached testcase.
2. Observe behavior on Mono and MS.NET.


Actual Results:

When the program is run, the following is displayed:

-------8<-------
** (./Emit.exe:4455): WARNING **: unknown token type 0

** ERROR **: file class.c: line 4079 (mono_class_get_full): should not be
reached
aborting...
-------8<-------

Following this is a managed and native stacktrace.

Expected Results:

MS.NET displays two success messages, and judging by the documentation this
appears to be the correct behavior given the testcase.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to