Bug 2861 - Compiler error CS0170 on structs using local storage
Summary: Compiler error CS0170 on structs using local storage
Alias: None
Product: Compilers
Classification: Mono
Component: C# ()
Version: unspecified
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Marek Safar
Depends on:
Reported: 2012-01-12 06:52 UTC by borrillis
Modified: 2012-01-17 07:53 UTC (History)
2 users (show)

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

Test for bad CS0170 (13.22 KB, application/octet-stream)
2012-01-12 06:52 UTC, borrillis

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:

Description borrillis 2012-01-12 06:52:09 UTC
Created attachment 1168 [details]
Test for bad CS0170

Certain constructs in my code are causing the compiler to generate CS0170 errors. but not all the time. This using 2.10.8, it appears the earliest working version is 2.10.5. I have attached a sample project to demonstrate this behavior, compiled under .Net the error is not generated.
Comment 1 Marek Safar 2012-01-17 07:53:58 UTC
This is master regression only, 2.10.x versions work as expected.

Fixed in master