[Mono-bugs] [Bug 558292] New: Can't apply unsafe to fixed arrays in structs

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Nov 25 04:37:44 EST 2009



           Summary: Can't apply unsafe to fixed arrays in structs
    Classification: Mono
           Product: Mono: Compilers
           Version: SVN
          Platform: x86-64
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: dans at houmus.org
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2b3)
Gecko/20091115 Firefox/3.6b3

This fails on SVN:

  [StructLayout(LayoutKind.Sequential, Pack = 1)]
  struct CacheLinePadding
    internal unsafe fixed byte Pad[64];

While this works:
  [StructLayout(LayoutKind.Sequential, Pack = 1)]
  unsafe struct CacheLinePadding
    internal fixed byte Pad[64];

Reproducible: Always

Steps to Reproduce:
Try to compile the code
Actual Results:  
Compiler failure

Expected Results:  
Compiler success

Configure bugmail: http://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.

More information about the mono-bugs mailing list