[Mono-bugs] [Bug 547165] New: Using implicit operators on structures causes compiler to crash
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Oct 15 05:53:34 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=547165
Summary: Using implicit operators on structures causes compiler
to crash
Classification: Mono
Product: Mono: Compilers
Version: SVN
Platform: Other
OS/Version: Other
Status: ASSIGNED
Severity: Normal
Priority: P5 - None
Component: Basic
AssignedTo: rkvinge at novell.com
ReportedBy: rkvinge at novell.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Structure S
Public Shared Widening Operator CType (n As Integer) As S
Return New S
End Operator
End Structure
Class C
Shared Sub Main
Dim c As S
c = 2
End Sub
End Class
Test.vb (10,8) : Error VBNC99997: You've encountered something in the compiler
which is not implemented. Please file a bug (see instructions here:
http://mono-project.com/Bugs)
<MyGenerator> (1,1) : Error VBNC99999: There was an exception during code
generation.
<MyGenerator> (1,1) : Error VBNC99999: Unexpected error: There has been an
internal error in the compiler: Operator CType is not defined for types
'System.Int32' and 'S'
at vbnc.CTypeExpression.GenerateCTypeCode (vbnc.EmitInfo Info, System.Type
DestinationType, System.Type SourceType) [0x006bb] in
/mono/main/git/mono-basic/vbnc/vbnc/source/Expressions/Conversions/CTypeExpression.vb:258
at vbnc.CTypeExpression.GenerateCodeInternal (vbnc.EmitInfo Info) [0x0024d]
in
/mono/main/git/mono-basic/vbnc/vbnc/source/Expressions/Conversions/CTypeExpression.vb:102
at vbnc.Expression.GenerateCode (vbnc.EmitInfo Info) [0x000dd] in
/mono/main/git/mono-basic/vbnc/vbnc/source/Expressions/Expression.vb:195
--
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