[Mono-list] MCS bug / known problem?

Ravi Pratap M ravi@ximian.com
26 Aug 2002 10:16:49 -0400


Hi Tom,

> The problem manifests itself when I use a 'const int' that is declared in
> another assembly. If a make a small 'test' assembly with a class that has
> also a 'public const int' then the problem is gone.

	Hmm, this looks like a new bug - not something we saw before.


> 
> The small program listed below reproduces the problem with the assembly
> provided with this mail (attachement).
> 
> using DecoderNameSpace;
> 
> namespace MonoTest
> {
> 
> 	public class TestClass
> 	{
> 		static void Main(string[] args)
> 		{
> 			TestClass t = new TestClass();
> 
> 		}
> 		public void TestMethod()
> 		{
> 			int i = Header.SINGLE_CHANNEL; // <=== MCS Crashes on this line, see
> stack dump
> 		}
> 	}
> }
> 
> Has anybody an idea what causes this problem or is it a known problem? If
> not I can submit a problem report or supply the code that builds the decoder
> assembly.


	Could you please file this is a bug report against the compiler on
http://bugzilla.ximian.com ? That should help us keep track of the bug
and fix it soon.


	Thanks,

		Ravi