Bug 3085 - [New Resolver] Crash when typing '['
Summary: [New Resolver] Crash when typing '['
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2012-01-26 06:03 UTC by Lluis Sanchez
Modified: 2012-01-31 03:45 UTC (History)
2 users (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 Developer Community or GitHub 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 FIXED

Description Lluis Sanchez 2012-01-26 06:03:20 UTC
I got this crash when typing '[' in this method declaration:

public void SetLineDash (double offset, params double[  <<-- crashed


System.NullReferenceException: Object reference not set to an instance of an object
  at Mono.CSharp.ParametersCompiled..ctor (Mono.CSharp.Parameter[] parameters) [0x00031] in /Users/lluis/prog/nowork/mdresolver/main/contrib/ICSharpCode.NRefactory.CSharp/Parser/mcs/parameter.cs:968 
  at Mono.CSharp.CSharpParser.case_154 () [0x0004e] in /Users/lluis/prog/nowork/mdresolver/main/contrib/ICSharpCode.NRefactory.CSharp/Parser/mcs/cs-parser.jay:1385 
  at Mono.CSharp.CSharpParser.yyparse (yyInput yyLex) [0x01839] in /Users/lluis/prog/nowork/mdresolver/main/contrib/ICSharpCode.NRefactory.CSharp/Parser/mcs/cs-parser.jay:1374 
  at Mono.CSharp.CSharpParser.parse () [0x00032] in /Users/lluis/prog/nowork/mdresolver/main/contrib/ICSharpCode.NRefactory.CSharp/Parser/mcs/cs-parser.jay:6665
Comment 1 Mike Krüger 2012-01-31 03:44:44 UTC
Works with the latest mcs parser.

@Marek: Do you remember this issue ?
Comment 2 Marek Safar 2012-01-31 03:45:35 UTC
Yes but I could not reproduce it with master mcs