Bug 37518 - error VBNC99999: Internal compiler error close to this location
Summary: error VBNC99999: Internal compiler error close to this location
Status: RESOLVED UPSTREAM
Alias: None
Product: Compilers
Classification: Mono
Component: VisualBasic ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Rolf Bjarne Kvinge [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2016-01-08 12:10 UTC by Rolf Bjarne Kvinge [MSFT]
Modified: 2018-05-22 12:31 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED UPSTREAM

Description Rolf Bjarne Kvinge [MSFT] 2016-01-08 12:10:16 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
Comment 1 Rolf Bjarne Kvinge [MSFT] 2018-05-22 12:31:57 UTC
Moved to: https://github.com/mono/mono-basic/issues/42