[Mono-bugs] [Bug 25170] Changed - mcs bails on a small typo.....

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
23 May 2002 20:10:16 -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 ds98rito@thn.htu.se.

http://bugzilla.ximian.com/show_bug.cgi?id=25170

--- shadow/25170	Thu May 23 15:46:08 2002
+++ shadow/25170.tmp.13031	Thu May 23 16:10:16 2002
@@ -61,6 +61,36 @@
 C:\cygwin\home\lalo\go-mono\mcs\mcs\cs-parser.jay:line 3938
 error CS5001: Program intypo.exe does not have an entry point defined
 
 ------- Additional Comments From gonzalo@ximian.com  2002-05-23 15:46 -------
 The previous comment is the current output for mcs, which is ok.
 Apart from its weirdness, it says that there is a syntax error...
+
+------- Additional Comments From ds98rito@thn.htu.se  2002-05-23 16:10 -------
+very, veru strange...
+When I do a: "mcs --target library Callc.cs" I get
+NullreferenceException....
+
+[toor@~/.gnome-desktop/mono/dll & exe]$ mcs --target library Calc.cs  
+syntax error, expecting ABSTRACT BOOL BYTE CHAR CLASS CONST DECIMAL
+DELEGATE DOUBLE ENUM EVENT EXPLICIT EXTERN FLOAT IMPLICIT INT
+INTERFACE INTERNAL LONG NEW OBJECT OVERRIDE PRIVATE PROTECTED PUBLIC
+READONLY SBYTE SEALED SHORT STATIC STRING STRUCT UINT ULONG UNSAFE
+USHORT VIRTUAL VOID VOLATILE IDENTIFIER
+Calc.cs (11,21), Token:294   : Parsing error 
+Mono.CSharp.yyParser.yyException
+irrecoverable syntax errorMono.CSharp.yyParser.yyExceptionin <0x00dc9>
+Mono.CSharp.CSharpParser:yyparse (Mono.CSharp.yyParser.yyInput)
+in <0x00075> Mono.CSharp.CSharpParser:parse ()
+
+
+** (process:22152): WARNING **: unhandled exception
+System.NullReferenceException: "A null value was found where an object
+instance was required"
+in (unmanaged) System.Reflection.Emit.AssemblyBuilder:getPEHeader ()
+in <0x000ba> System.Reflection.Emit.AssemblyBuilder:Save (string)
+in <0x00027> Mono.CSharp.CodeGen:Save (string)
+in <0x01cf9> Mono.CSharp.Driver:MainDriver (string[])
+in <0x00009> Mono.CSharp.Driver:Main (string[])
+
+RESULT: -1
+