[Mono-bugs] [Bug 640699] New: Mono 2.8 Preview 6: gmcs regression -- spurious CS0031 error
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Sep 21 02:29:07 EDT 2010
https://bugzilla.novell.com/show_bug.cgi?id=640699
https://bugzilla.novell.com/show_bug.cgi?id=640699#c0
Summary: Mono 2.8 Preview 6: gmcs regression -- spurious CS0031
error
Classification: Mono
Product: Mono: Compilers
Version: 2.8.x
Platform: Macintosh
OS/Version: Mac OS X 10.6
Status: NEW
Severity: Normal
Priority: P5 - None
Component: C#
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: brian at sooloos.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.25 Safari/534.3
brian at brianmbp ~ $ cat x.cs [ 1 ]
public class Foo {
public static void Main(string[] args) {
byte b = 0;
b |= 0;
}
}
brian at brianmbp ~ $ gmcs --version [ 1 ]
Mono C# compiler version 2.8.0.0
brian at brianmbp ~ $ gmcs x.cs
x.cs(5,11): error CS0031: Constant value `0' cannot be converted to a `byte'
Compilation failed: 1 error(s), 0 warnings
This code compiles using 2.6.x with no errors. It also compiles with the
microsoft toolchain. Line 5 is "b |= 0;"
I installed mono using the binary x86 osx installer here:
http://mono.ximian.com/monobuild/preview/download-preview/. The git hash for
the version I grabbed (as reported on that URL) is 58f029f.
Reproducible: Always
Steps to Reproduce:
1. See above.
Actual Results:
Compilation fails with CS0031
Expected Results:
Compilation succeeds.
--
Configure bugmail: https://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