[Mono-bugs] [Bug 77210][Maj] New - Compiler error,
'passing' arguments to functions or subs
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Jan 11 08:57:17 EST 2006
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 alex at buayacorp.com.
http://bugzilla.ximian.com/show_bug.cgi?id=77210
--- shadow/77210 2006-01-11 08:57:17.000000000 -0500
+++ shadow/77210.tmp.15995 2006-01-11 08:57:17.000000000 -0500
@@ -0,0 +1,64 @@
+Bug#: 77210
+Product: Mono: Compilers
+Version: 1.0
+OS:
+OS Details: FC4 x86_64
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: Basic
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: alex at buayacorp.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Compiler error, 'passing' arguments to functions or subs
+
+There is a compiler error when passing arguments of type void(?) to
+functions or subs.
+
+Steps to reproduce the problem:
+1. Write a simple class (bar.vb):
+
+[code]
+Imports System
+
+Public Class Foo
+ Public Shared Sub Main()
+ Dummy(Console.WriteLine()) ' Error
+ End Sub
+ Public Shared Sub Dummy(ByVal x as String)
+ End Sub
+End Class
+[/code]
+
+Actual Results:
+
+[alex at localhost tests]$ mbas bar.vb
+MonoBASIC Compiler 1.1.11.0 - (c)2002, 2003, 2004, 2005 Rafael Teixeira
+--------
+THIS IS AN ALPHA SOFTWARE.
+--------
+Compilation succeeded
+[alex at localhost tests]$ mono bar.exe
+
+** ERROR **: Invalid IL code at IL0005 in Foo:Main (): IL_0005: box
+0x01000003
+
+
+aborting...
+Abortado
+
+Expected Results:
+
+Should not compile.
+
+How often does this happen?
+
+Always
+
+Additional Information:
+
+Compiler build from svn source.
More information about the mono-bugs
mailing list