[Mono-bugs] [Bug 680380] New: vbnc incorrectly emits System.Runtime.InteropServices.OutAttribute

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Mar 17 02:33:09 EDT 2011



           Summary: vbnc incorrectly emits
    Classification: Mono
           Product: Mono: Compilers
           Version: 2.10.x
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Basic
        AssignedTo: rkvinge at novell.com
        ReportedBy: jeroen at sumatra.nl
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

User-Agent:       Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64;

The System.Runtime.InteropServices.OutAttribute is a pseudo-custom attribute
and should not be emitted as a normal custom attribute, instead the Out flag of
the parameter should be set.

Reproducible: Always

Steps to Reproduce:
1. vbnc test.vb
2. ildasm test.exe
3. look at foo method
Actual Results:  
method public static void  Foo(int32& i) cil managed
  .param [1]
  .custom instance void
[mscorlib]System.Runtime.InteropServices.OutAttribute::.ctor() = ( 01 00 00 00
  // Code size       2 (0x2)
  .maxstack  8
  IL_0000:  nop
  IL_0001:  ret
} // end of method MyMod::Foo

Expected Results:  
method public static void  Foo([out] int32& i) cil managed
  // Code size       1 (0x1)
  .maxstack  8
  IL_0000:  ret
} // end of method MyMod::Foo

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