[Mono-bugs] [Bug 52570][Maj] New - msc block compilation failure
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sat, 3 Jan 2004 04:41:48 -0500 (EST)
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 jwezel@compumaster.de.
http://bugzilla.ximian.com/show_bug.cgi?id=52570
--- shadow/52570 2004-01-03 04:41:48.000000000 -0500
+++ shadow/52570.tmp.8674 2004-01-03 04:41:48.000000000 -0500
@@ -0,0 +1,114 @@
+Bug#: 52570
+Product: Mono/Compilers
+Version: unspecified
+OS: Red Hat 9.0
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: jwezel@compumaster.de
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: msc block compilation failure
+
+Description of Problem:
+mcs StringsTest.bugtest2.cs /r:Microsoft.VisualBasic /r:NUnit.Framework
+Exception caught by the compiler while compiling:
+ Block that caused the problem begin at: StringsTest.bugtest2.cs: (11)
+ Block being compiled: [StringsTest.bugtest2.cs:
+(12),StringsTest.bugtest2.cs: (15)]
+
+Steps to reproduce the problem:
+1. Test unit content:
+using Microsoft.VisualBasic;
+using System;
+using NUnit.Framework;
+
+namespace MonoTests.Microsoft.VisualBasic
+{
+ [TestFixture]
+ public class StringsTest : Assertion
+ {
+ [Test]
+ public void Replace()
+ {
+ string buffer;
+ NUnit.Framework.Assertion.AssertEquals
+("JW#Replace/10", null, Strings.Replace(String.Empty, "ÄÖ", "deee",1,-
+1,CompareMethod.Binary));
+ }
+ }
+}
+
+2. Compilation command:
+mcs StringsTest.bugtest2.cs /r:Microsoft.VisualBasic /r:NUnit.Framework
+
+Actual Results:
+Unhandled Exception: System.NotImplementedException: The requested feature
+is not yet implemented
+in <0x00030>
+Microsoft.VisualBasic.CompilerServices.OptionCompareAttribute:.ctor ()
+in (unmanaged) /usr/local/lib/libmono.so.0 [0x4004576b]
+in (unmanaged) /usr/local/lib/libmono.so.0(mono_runtime_invoke+0x23)
+[0x4007bdb7]
+in (unmanaged) /usr/local/lib/libmono.so.0 [0x40076d60]
+in (unmanaged) /usr/local/lib/libmono.so.0
+(mono_custom_attrs_construct+0x7c) [0x40076fa0]
+in (unmanaged) /usr/local/lib/libmono.so.0
+(mono_reflection_get_custom_attrs+0xd8) [0x4007758c]
+in <0x000a4> System.MonoCustomAttrs:from_cache
+(System.Reflection.ICustomAttributeProvider)
+in <0x0009a> System.MonoCustomAttrs:GetCustomAttributes
+(System.Reflection.ICustomAttributeProvider,System.Type,bool)
+in <0x00015> System.Reflection.ParameterInfo:GetCustomAttributes
+(System.Type,bool)
+in <0x00070> Mono.CSharp.ReflectionParameters:.ctor
+(System.Reflection.ParameterInfo[])
+in <0x00100> Mono.CSharp.Invocation:GetParameterData
+(System.Reflection.MethodBase)
+in <0x00062> Mono.CSharp.Invocation:IsApplicable
+(Mono.CSharp.EmitContext,System.Collections.ArrayList,System.Reflection.Met
+hodBase)
+in <0x00226> Mono.CSharp.Invocation:OverloadResolve
+(Mono.CSharp.EmitContext,Mono.CSharp.MethodGroupExpr,System.Collections.Arr
+ayList,Mono.CSharp.Location)
+in <0x0033e> Mono.CSharp.Invocation:DoResolve (Mono.CSharp.EmitContext)
+in <0x000e0> Mono.CSharp.Expression:Resolve
+(Mono.CSharp.EmitContext,Mono.CSharp.ResolveFlags)
+in <0x00019> Mono.CSharp.Expression:Resolve (Mono.CSharp.EmitContext)
+in <0x000e5> Mono.CSharp.Argument:Resolve
+(Mono.CSharp.EmitContext,Mono.CSharp.Location)
+in <0x0027b> Mono.CSharp.Invocation:DoResolve (Mono.CSharp.EmitContext)
+in <0x000e0> Mono.CSharp.Expression:Resolve
+(Mono.CSharp.EmitContext,Mono.CSharp.ResolveFlags)
+in <0x00019> Mono.CSharp.Expression:Resolve (Mono.CSharp.EmitContext)
+in <0x00021> Mono.CSharp.ExpressionStatement:ResolveStatement
+(Mono.CSharp.EmitContext)
+in <0x0001d> Mono.CSharp.StatementExpression:Resolve
+(Mono.CSharp.EmitContext)
+in <0x001cb> Mono.CSharp.Block:Resolve (Mono.CSharp.EmitContext)
+in <0x000e3> Mono.CSharp.EmitContext:EmitTopBlock
+(Mono.CSharp.Block,Mono.CSharp.InternalParameters,Mono.CSharp.Location)
+in <0x00276> Mono.CSharp.EmitContext:EmitTopBlock
+(Mono.CSharp.Block,Mono.CSharp.InternalParameters,Mono.CSharp.Location)
+in <0x0045a> Mono.CSharp.MethodData:Emit
+(Mono.CSharp.TypeContainer,Mono.CSharp.Block,object)
+in <0x00038> Mono.CSharp.Method:Emit (Mono.CSharp.TypeContainer)
+in <0x0026f> Mono.CSharp.TypeContainer:Emit ()
+in <0x0060f> Mono.CSharp.RootContext:EmitCode ()
+in <0x0081f> Mono.CSharp.Driver:MainDriver (string[])
+in <0x0001b> Mono.CSharp.Driver:Main (string[])
+
+Expected Results:
+should compile without errors as in MS .NET Framework
+
+How often does this happen?
+every time
+
+Additional Information:
+N/A