Bug 6292 - [PARSER] The compiler tells unexpected symbol when calling method F(bool a, bool b)
Summary: [PARSER] The compiler tells unexpected symbol when calling method F(bool a, b...
Status: NEW
Alias: None
Product: Compilers
Classification: Mono
Component: C# ()
Version: unspecified
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Marek Safar
: 60471 ()
Depends on:
Reported: 2012-07-26 01:57 UTC by Minh Cat VO
Modified: 2017-11-01 14:30 UTC (History)
3 users (show)

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 for Bug 6292 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Minh Cat VO 2012-07-26 01:57:23 UTC
For example, I declared a method 

bool F (bool a, bool b) { return 1;} 

public static void Main(string[] args) 
 int a = 1;
 int b = 1;
 int c = 1;
 F(a < b, b > c);  // Error: Unexpected symbol 'c'. 

I think the compiler get errors when parsing "b, b" the between '<' '>', maybe it refers to generic.
Comment 1 Marek Safar 2013-03-22 09:36:10 UTC
I don't think we can fix this with jay because we need to tokenize variable_type using different rules (tokenize <,> always as generic OP_GENERICS_* only) and we cannot flag this context using jay. If that was possible we can then could disambiguate using C# rules from Grammar ambiguities
Comment 2 Marek Safar 2017-11-01 14:30:35 UTC
*** Bug 60471 has been marked as a duplicate of this bug. ***