Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Invalid IL code when compiling slightly complex VB expression #44

Open
rolfbjarne opened this issue May 22, 2018 · 0 comments
Open

Invalid IL code when compiling slightly complex VB expression #44

rolfbjarne opened this issue May 22, 2018 · 0 comments

Comments

@rolfbjarne
Copy link
Member

rolfbjarne commented May 22, 2018

Submitted by a community member on 2016-06-16 02:13 UTC

The following:

Imports System
Imports System.Collections.Generic

Public Class Test
    Public Shared Sub Main()
        Dim good As New List(Of String)
        Dim god As Integer = AscW(good(0)(0))
    End Sub
End Class

Causes:

Unhandled Exception:
System.InvalidProgramException: Invalid IL code in Test:Main (): IL\_0015: call      0x0a000003

[ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidProgramException: Invalid IL code in Test:Main (): IL\_0015: call      0x0a000003

This was observed on:
Visual Basic.Net Compiler version 0.0.0.5943 (Mono 4.0.1 - tarball)
And possibly others (not sure if it still fails on latest though)


Reference: https://bugzilla.xamarin.com/show_bug.cgi?id=41875

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant