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

error VBNC99999: Internal compiler error close to this location #42

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

error VBNC99999: Internal compiler error close to this location #42

rolfbjarne opened this issue May 22, 2018 · 0 comments

Comments

@rolfbjarne
Copy link
Member

rolfbjarne commented May 22, 2018

Submitted by Rolf Bjarne Kvinge [MSFT] on 2016-01-08 12:10 UTC

Code:

Class C
	ReadOnly Property P As String
		Get
			Return ""
		End Get
	End Property
	Function S (ByRef a As Integer) As Object
		Dim f As String = S (P)
	End Function
End Class

Results in:

/Users/rolf/test/test.vb (8,25) : error VBNC99999: Internal compiler error close to this location
vbnc : Command line : error VBNC99999: Unexpected error: Index must be within the bounds of the List.
Parameter name: index
  at System.ThrowHelper.ThrowArgumentOutOfRangeException (ExceptionArgument argument, ExceptionResource resource) [0x00000] in /private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.2.1/external/referencesource/mscorlib/system/throwhelper.cs:90 
  at System.Collections.Generic.List`1[T].Insert (Int32 index, System.Collections.Generic.T item) <0x18d7030 + 0x00034> in <filename unknown>:0 
  at vbnc.CodeBlock.AddStatementBefore (vbnc.Statement Statement, vbnc.Statement Before) [0x00000] in /private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/mono-mono-basic-b8011b2/vbnc/vbnc/source/Code/CodeBlock.vb:142 
  at vbnc.ArgumentList.VerifyArguments (Mono.Collections.Generic.Collection`1 parameters, Boolean ShowErrors) [0x00520] in /private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/mono-mono-basic-b8011b2/vbnc/vbnc/source/Expressions/ArgumentList.vb:163 
  at vbnc.ArgumentList.VerifyArguments (Mono.Cecil.MethodReference Method, Boolean ShowErrors) [0x00000] in /private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/mono-mono-basic-b8011b2/vbnc/vbnc/source/Expressions/ArgumentList.vb:91 
  at vbnc.ArgumentList.ReplaceAndVerifyArguments (vbnc.ArgumentList NewArguments, Mono.Cecil.MethodReference Method, Boolean ShowErrors) [0x0000e] in /private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/mono-mono-basic-b8011b2/vbnc/vbnc/source/Expressions/ArgumentList.vb:72 
  at vbnc.MethodGroupClassification.VerifyGroup (vbnc.ArgumentList Arguments, Boolean ShowErrors) [0x00015] in /private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/mono-mono-basic-b8011b2/vbnc/vbnc/source/Expressions/Classifications/MethodGroupClassification.vb:374 
  at vbnc.InvocationOrIndexExpression.ResolveMethodInvocation () [0x0015a] in /private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/mono-mono-basic-b8011b2/vbnc/vbnc/source/Expressions/InvocationOrIndexExpression.vb:516 
  at vbnc.InvocationOrIndexExpression.ResolveExpressionInternal (vbnc.ResolveInfo Info) [0x00368] in /private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/mono-mono-basic-b8011b2/vbnc/vbnc/source/Expressions/InvocationOrIndexExpression.vb:238 
  at vbnc.Expression.ResolveExpression (vbnc.ResolveInfo ResolveInfo) [0x00011] in /private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/mono-mono-basic-b8011b2/vbnc/vbnc/source/Expressions/Expression.vb:221 

Compilation took 00:00:00.5606970

Setting option strict on results in:

/Users/rolf/test/test.vb (9,22) : error VBNC30518: CHANGEME

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

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