[Mono-bugs] [Bug 663913] New: [regression] experimental mcs fails to load derived attributes from separate assemblies

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jan 12 06:47:13 EST 2011



           Summary: [regression] experimental mcs fails to load derived
                    attributes from separate assemblies
    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 mlabs.pl
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

Created an attachment (id=407969)
 --> (http://bugzilla.novell.com/attachment.cgi?id=407969)
test case

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

Having a class hierarchy:
  [Dep] class FooBar,
  DepAttribute : ActiveRecordAttribute : System.Attribute
and each class (FooBar, DepAttribute, ActiveRecordAttribute) defined in
separate assemblies, mcs fails to build the last assembly (consisting of FooBar

Reproducible: Always

Steps to Reproduce:
1. Unzip the attached test case.
2. cd DIR; make
Actual Results:  
gmcs /target:library FooBar.cs /r:dep/Dep.dll
FooBar.cs(3,6): error CS0246: The type or namespace name `Dep' could not be
found. Are you missing a using directive or an assembly reference?
FooBar.cs(3,6): error CS0012: The type `ActiveRecordAttribute' is defined in an
assembly that is not referenced. Consider adding a reference to assembly
`BasicAttr, Version=, Culture=neutral, PublicKeyToken=null'
FooBar.cs(3,6): error CS0616: `Foo.DepAttribute': is not an attribute class
/home/wysek/mono-fails/attribute2/dep/Dep.dll (Location of the symbol related
to previous error)

Expected Results:  
No output (build should be ok).

mono git-master experimental, I copied mcs/class/lib/basic/mcs.exe into
 master revision used:
commit 2e2337e80a8db4bc045900b8bc18cf79754cddf6
Author: Atsushi Eno <atsushi at ximian.com>
Date:   Wed Jan 12 16:49:38 2011 +0900

    Implement XamlBackgroundReader.

Marked as regression, as it works in 2.6.7 and 2.8.1.

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