[Mono-bugs] [Bug 642975] strange const and static problem
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Oct 1 18:33:45 EDT 2010
https://bugzilla.novell.com/show_bug.cgi?id=642975
https://bugzilla.novell.com/show_bug.cgi?id=642975#c1
Zoltan Varga <vargaz at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |vargaz at gmail.com
Component|misc |C#
Product|Mono: Runtime |Mono: Compilers
--- Comment #1 from Zoltan Varga <vargaz at gmail.com> 2010-10-01 22:33:44 UTC ---
This is a gmcs bug. Testcase:
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
using System;
class monofail4
{
static int Main(string[] args) {
//switching to a constant fixes the problem
double thisIsCausingTheProblem = 5.0;
double[,] m1 = new double[4, 4]
{
{ 1.0, 0.0, 0.0, thisIsCausingTheProblem },
{ 0.0, 1.0, 0.0, thisIsCausingTheProblem },
{ 0.0, 0.0, 1.0, thisIsCausingTheProblem },
{ 0.0, 0.0, 0.0, 1.0 }
};
Console.WriteLine (m1 [0, 3]);
return 0;
}
}
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Looking at the generated IL, it doesn't initialize the array members with a
variable value.
--
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