http://bugzilla.novell.com/show_bug.cgi?id=558292

http://bugzilla.novell.com/show_bug.cgi?id=558292#c0


           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: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to