Bugzilla – Bug 315897
`fixed' should create its own scope
Last modified: 2007-09-15 21:24:23 UTC
---- Reported by jeroen@sumatra.nl 2004-08-27 10:26:20 MST ---- using System.Runtime.InteropServices; struct MyStruct { internal int p; } class test { int bar; unsafe void Method1() { fixed(void* p = &bar) {} fixed(void* p = &bar) {} } unsafe void Method2(MyStruct* p) { void* pv = &p->p; } } ---- Additional Comments From bmaurer@users.sf.net 2004-08-29 15:20:40 MST ---- Method 1 is a dup of https://bugzilla.novell.com/show_bug.cgi?id=MONO60620. Method 2 is new. A simpler test case: unsafe class X { static void Main () { int x; fixed (void* p = &x) {} fixed (void* p = &x) {} } } ---- Additional Comments From rharinath@novell.com 2004-09-10 08:52:36 MST ---- Created an attachment (id=166707) fix ---- Additional Comments From rharinath@novell.com 2004-09-10 08:53:30 MST ---- Applied to CVS. Imported an attachment (id=166707) Unknown operating system unknown. Setting to default OS "Other".