[Mono-bugs] [Bug 629369] New: Implicit local variable broken 2: properties
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sat Aug 7 16:49:13 EDT 2010
http://bugzilla.novell.com/show_bug.cgi?id=629369
http://bugzilla.novell.com/show_bug.cgi?id=629369#c0
Summary: Implicit local variable broken 2: properties
Classification: Mono
Product: Mono: Compilers
Version: 2.6.x
Platform: x86
OS/Version: openSUSE 11.3
Status: NEW
Severity: Minor
Priority: P5 - None
Component: Basic
AssignedTo: rkvinge at novell.com
ReportedBy: simar at gmx.net
QAContact: mono-bugs at lists.ximian.com
Found By: Development
Blocker: No
Created an attachment (id=381418)
--> (http://bugzilla.novell.com/attachment.cgi?id=381418)
Implicit local variable broken in getter methods. Equivalent working code as
comment.
Description of Problem:
Steps to reproduce the problem:
1. Try to compile the TestCase2.vb file
Actual Results:
Compiler crashes with an Exception, that doesn't give a hint where the error is
and what exactly happened.
vbnc
"-out:/home/simar/Projects/SizeParamIndex_notImplemented/SizeParamIndex_notImplemented/bin/Debug/SizeParamIndex_notImplemented.dll"
-nologo -utf8output -quiet -debug:full -optionstrict+ -optionexplicit+
-optioncompare:binary -optioninfer-
-rootnamespace:SizeParamIndex_notImplemented -main:TestCase -target:library
"/home/simar/Projects/SizeParamIndex_notImplemented/SizeParamIndex_notImplemented/TestCase.vb"
"/home/simar/Projects/SizeParamIndex_notImplemented/SizeParamIndex_notImplemented/TestCase2.vb"
"/home/simar/Projects/SizeParamIndex_notImplemented/SizeParamIndex_notImplemented/TestCase3.vb"
"/home/simar/Projects/SizeParamIndex_notImplemented/SizeParamIndex_notImplemented/TestCase4.vb"
/home/simar/Projects/SizeParamIndex_notImplemented/SizeParamIndex_notImplemented/<MyGenerator>
(1,1) : Error VBNC99999: Unexpected error: Object reference not set to an
instance of an object
at vbnc.Helper.EmitArgumentsAndCallOrCallVirt (vbnc.EmitInfo Info,
vbnc.Expression InstanceExpression, vbnc.ArgumentList Arguments,
System.Reflection.MethodBase Method) [0x00047] in
/usr/src/packages/BUILD/mono-basic-2.6.2/vbnc/vbnc/source/General/Helper.vb:1426
at vbnc.PropertyAccessClassification.GenerateCode (vbnc.EmitInfo Info)
[0x0017e] in
/usr/src/packages/BUILD/mono-basic-2.6.2/vbnc/vbnc/source/Expressions/Classifications/PropertyAccessClassification.vb:131
at vbnc.AssignmentStatement.GenerateCode (vbnc.EmitInfo Info) [0x00015] in
/usr/src/packages/BUILD/mono-basic-2.6.2/vbnc/vbnc/source/Statements/AssignStatements/AssignmentStatement.vb:73
at vbnc.CodeBlock.GenerateCode (vbnc.EmitInfo Info) [0x000c6] in
/usr/src/packages/BUILD/mono-basic-2.6.2/vbnc/vbnc/source/Code/CodeBlock.vb:546
at vbnc.CodeBlock.GenerateCode (IMethod Method) [0x00044] in
/usr/src/packages/BUILD/mono-basic-2.6.2/vbnc/vbnc/source/Code/CodeBlock.vb:469
at vbnc.MethodBaseDeclaration.GenerateCode (vbnc.EmitInfo Info) [0x00090] in
/usr/src/packages/BUILD/mono-basic-2.6.2/vbnc/vbnc/source/General/MethodBaseDeclaration.vb:255
at vbnc.MethodDeclaration.GenerateCode (vbnc.EmitInfo Info) [0x00002] in
/usr/src/packages/BUILD/mono-basic-2.6.2/vbnc/vbnc/source/Members/MethodDeclaration.vb:162
at vbnc.SubDeclaration.GenerateCode (vbnc.EmitInfo Info) [0x0001b] in
/usr/src/packages/BUILD/mono-basic-2.6.2/vbnc/vbnc/source/Members/SubDeclaration.vb:102
at vbnc.PropertyDeclaration.GenerateCode (vbnc.EmitInfo Info) [0x00013] in
/usr/src/packages/BUILD/mono-basic-2.6.2/vbnc/vbnc/source/Members/PropertyDeclaration.vb:269
at vbnc.Helper.GenerateCodeCollection (IEnumerable Collection, vbnc.EmitInfo
Info) [0x00025] in
/usr/src/packages/BUILD/mono-basic-2.6.2/vbnc/vbnc/source/General/Helper.vb:2385
at vbnc.BaseObjects`1[T].GenerateCode (vbnc.EmitInfo Info) [0x00000] in
/usr/src/packages/BUILD/mono-basic-2.6.2/vbnc/vbnc/source/General/BaseObjects`1.vb:74
at vbnc.AssemblyDeclaration.Emit (vbnc.TypeDeclaration Type) [0x0001c] in
/usr/src/packages/BUILD/mono-basic-2.6.2/vbnc/vbnc/source/TypeDeclarations/AssemblyDeclaration.vb:170
at vbnc.AssemblyDeclaration.Emit () [0x00043] in
/usr/src/packages/BUILD/mono-basic-2.6.2/vbnc/vbnc/source/TypeDeclarations/AssemblyDeclaration.vb:516
at vbnc.Compiler.Compile () [0x00399] in
/usr/src/packages/BUILD/mono-basic-2.6.2/vbnc/vbnc/source/General/Compiler.vb:593
Compilation took 00:00:00.7134060
Expected Results:
A compiled binary.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list