[Mono-bugs] [Bug 443159] New: ilasm fails with "Circular definition of class" while . NET ilasm doesn't

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Nov 8 18:01:02 EST 2008


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


           Summary: ilasm fails with "Circular definition of class" while
                    .NET ilasm doesn't
           Product: Mono: Compilers
           Version: 2.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: IL assembler
        AssignedTo: jankit at novell.com
        ReportedBy: rodrigoq at fibertel.com.ar
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=250885)
 --> (https://bugzilla.novell.com/attachment.cgi?id=250885)
test case containing il, cs and dll files.

Description of Problem:
I'm attaching some code that would be ilassembled with .NET but gives an error
with Mono ilasm. Found this assembling a bigger dll of mine but I'm only giving
the smallest code that would reproduce the bug, it's pretty small indeed.

Steps to reproduce the problem:
1. Get this code into a cs file (or use attached Class1.cs):

public class Class2<T> { }
public class Class1: Class2<Class1> { }

2. Compile, Dissasemble, Ilassemble:

gmcs /t:library Class1.cs
monodis Class1.dll --output=Class1.il
ilasm Class1.il /dll /quiet /output=Class2.dll


Actual Results:

Class1.il : Error : Circular definition of class: Class1

***** FAILURE *****


Expected Results:
The compiled assembly. (Works with ms ilasm (same command line))

How often does this happen? 
Always

Additional Information:
Using Mono 2.0.1 on Windows XP SP3


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list