When i use mono 2.10.8.1 on debian to compile the code below, running it gives an System.IndexOutOfRangeException whilst compiling it in debuging mode doesn’t, Further more it shouldn’t give any errors. Is this a known bug?
using System;
namespace CompilerBug
{
public class NotMain
{
public static void Main (string[] a)
{
bool[,] test = new bool[201,201];
int x,y;
for(x=-100;x<100;x++) for(y=-100;y<100;y++){
test[x+100,y+100] = true;
}
}
}
}
Apperently not a known bug, so reported it to mono.
Link to the bug report for further reference: bugzilla.xamarin.com/…