[Mono-bugs] [Bug 616068] New: [Regression] gmcs no longer does some access checks
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Jun 21 15:56:06 EDT 2010
http://bugzilla.novell.com/show_bug.cgi?id=616068
http://bugzilla.novell.com/show_bug.cgi?id=616068#c0
Summary: [Regression] gmcs no longer does some access checks
Classification: Mono
Product: Mono: Compilers
Version: SVN
Platform: Other
OS/Version: Other
Status: NEW
Severity: Major
Priority: P5 - None
Component: C#
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: vargaz at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
Testcase:
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
using System;
public class Bar {
static double x;
static Bar () {
x = 5;
}
}
public class Tests
{
public static double foo () {
return Bar.x;
}
public static int Main () {
foo ();
return 0;
}
}
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
gmcs compiles this, and the code produces a FieldAccessException at runtime,
while csc repors an error.
--
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