[Mono-list] MCS: Exception caught by the compiler while compiling

Miguel de Icaza miguel@ximian.com
Wed, 31 Dec 2003 17:34:42 -0500


Hello,

> Here is a nice question for the mcs.exe developers:
> =20
> Does somebody has an idea why the following line breaks the
> compilation in Mono (MS.NET works fine)?
>         NUnit.Framework.Assertion.AssertEquals ("JW#Replace/10", null,
>         Strings.Replace(String.Empty, "=C4=D6",
>         "deee",1,-1,CompareMethod.Binary));=20
>        =20
>        =20
> and the mcs compiler throws the following exception (see below for the
> complete log):
>=20
>         Exception caught by the compiler while compiling:
>            Block that caused the problem begin at:
>         Test/StringsTest.cs: (1237)
>                              Block being compiled:
>         [Test/StringsTest.cs: (1238),Test/StringsTest.cs: (1358)]
>        =20
> Where is the currently now allowed method or call or ..?

Can you please make a very simple test case?  MCS is finding a problem
in a block of 120 lines, it would be nice to have a smaller sample in
Bugzilla to track down.