[Mono-bugs] [Bug 33151][Wis] Changed - MCS creates bad MSIL for if statement
4 Nov 2002 09:26:55 -0000
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by email@example.com.
--- shadow/33151 Fri Nov 1 16:12:48 2002
+++ shadow/33151.tmp.5719 Mon Nov 4 04:26:55 2002
@@ -1,12 +1,12 @@
@@ -60,6 +60,53 @@
I compiled your program with mcs and csc, and they both generate the
same exception. It is a bug in your code most likely, the state of
things changes inside the first if test.
Ran in on both mono and .net and get the same behavior. Your code
seems to be the buggy one.
+------- Additional Comments From firstname.lastname@example.org 2002-11-04 04:26 -------
+when I saw, your comment I started to doubt my own sanity!
+you need to pass a single arguement to the program which is a pass to
+a file which is bigger than 2050 characters long. Otherwise you get
+the same error for both mcs and csc, which is I guess what your saw..
+You can run mcs with 'monomcs' on .NET, instead of mono, too.
+C:\Projects\STAX>mono monobug2.exe somelargefile.txt
+Unhandled Exception: System.SystemException: internal Error this
+should never happen
+in <0x00097> 00 test.aBug:getNextChar ()
+in <0x001c6> 00 test.testMain:Main (string)
+\csc.exe /OUT:monobug2cbyCSC.exe monobug2.cs
+Microsoft (R) Visual C# .NET Compiler version 7.00.9466
+for Microsoft (R) .NET Framework version 1.0.3705
+Copyright (C) Microsoft Corporation 2001. All rights reserved.
+C:\Projects\STAX>mono monobug2cbyCSC.exe somelargefile.txt
+As you see when the prog is compiled by mcs you get a different
+result from CSC.exe!
+I have attached a new version of the bug prog (same as before but
+complains if you don't supply a file arg over 2050 bytes.)
+[sanity check passed!]