[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


           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:
<MyGenerator> (1,1) : Error VBNC99999: There was an exception during code
<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
  at vbnc.CTypeExpression.GenerateCodeInternal (vbnc.EmitInfo Info) [0x0024d]
  at vbnc.Expression.GenerateCode (vbnc.EmitInfo Info) [0x000dd] in

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