[Mono-bugs] [Bug 662222] New: [regression] experimental mcs fails to import attributed List<object> field

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jan 4 06:29:47 EST 2011


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

https://bugzilla.novell.com/show_bug.cgi?id=662222#c0


           Summary: [regression] experimental mcs fails to import
                    attributed List<object> field
    Classification: Mono
           Product: Mono: Compilers
           Version: SVN
          Platform: x86-64
        OS/Version: Ubuntu
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: C#
        AssignedTo: msafar at novell.com
        ReportedBy: piotr.wysocki at secpl.cs.put.poznan.pl
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=406861)
 --> (http://bugzilla.novell.com/attachment.cgi?id=406861)
failing example

User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13)
Gecko/20101206 Ubuntu/10.10 (maverick) Firefox/3.6.13

The attached example fails to compile on mono git-master experimental (*).

Reproducible: Always

Steps to Reproduce:
rm -f 1.dll 2.dll dep.dll
gmcs /t:library DepAttribute.cs /out:dep.dll
gmcs /t:library /r:dep.dll Foo.cs  /out:1.dll
gmcs /t:library /r:1.dll Bar.cs /out:2.dll
(or just run make, there is a Makefile)

Actual Results:  
Bar.cs(7,21): error CS0584: Internal compiler error: Cannot import field
`FooN.Foo.MyList' referenced in assembly `1, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=null'
Bar.cs(7,17): error CS0266: Cannot implicitly convert type `object' to
`FooN.Foo'. An explicit conversion exists (are you missing a cast?)
Bar.cs(8,15): error CS1061: Type `FooN.Foo' does not contain a definition for
`MyList' and no extension method `MyList' of type `FooN.Foo' could be found
(are you missing a using directive or an assembly reference?)

Expected Results:  
It should build ok.
Mono 2.8.1 and 2.6.7 build it.

(*) mono git-master experimental, I copied mcs/class/lib/basic/mcs.exe into
/opt/mono-git/bin/gmcs
 master revision used:
commit caea6842586ed0c7c793f5452065c8a4b5421d75
Author: Zoltan Varga <vargaz at gmail.com>
Date:   Mon Jan 3 16:42:39 2011 +0100

    Implement support for llvm+thumb2+aot on arm.

-- 
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